From a286d842914f6fe8e4498d840ac873c64e3d8733 Mon Sep 17 00:00:00 2001 From: johanknol Date: Wed, 26 Feb 2003 16:55:05 +0000 Subject: [PATCH] LRH commit, only to sync with other developers git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2323 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCBBlock.c | 3 ++- src/SDCCloop.c | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/SDCCBBlock.c b/src/SDCCBBlock.c index fd50e6a3..dac9d8ec 100644 --- a/src/SDCCBBlock.c +++ b/src/SDCCBBlock.c @@ -191,7 +191,8 @@ dumpEbbsToFileExt (int id, eBBlock ** ebbs, int count) fprintf (of, "Basic Block %s : loop Depth(lSeq) = %d(%d) noPath = %d , lastinLoop = %d\n", ebbs[i]->entryLabel->name, ebbs[i]->depth, - ebbs[i]->depth ? findLoopEndSeq(ebbs[i]->partOfLoop) : 0, + (0 /* for now */ & + ebbs[i]->depth) ? findLoopEndSeq(ebbs[i]->partOfLoop) : 0, ebbs[i]->noPath, ebbs[i]->isLastInLoop); fprintf (of, "\ndefines bitVector :"); diff --git a/src/SDCCloop.c b/src/SDCCloop.c index 98fe8e9a..ab41d772 100644 --- a/src/SDCCloop.c +++ b/src/SDCCloop.c @@ -1,4 +1,4 @@ -//#define LIVERANGEHUNT +#define LIVERANGEHUNT #ifdef LIVERANGEHUNT #define LRH(x) x #else @@ -342,6 +342,13 @@ DEFSETFUNC (createLoop) LRH(printf("****** %d %d %d %x %s\n", ebbs[i]->dfnum, dfMin, dfMax, ebbs[i]->partOfLoop, ebbs[i]->entryLabel->name)); } + /* and if this is a conditional block, the other side of the IFX + (if any, that could have a greater dfnum) is too */ + { + // just a burp, but I'm getting close :) + } + + /* now add it to the set */ addSetHead (allRegion, aloop); return 0; -- 2.30.2