LRH commit, only to sync with other developers
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 26 Feb 2003 16:55:05 +0000 (16:55 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 26 Feb 2003 16:55:05 +0000 (16:55 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2323 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCBBlock.c
src/SDCCloop.c

index fd50e6a3b00b08df5a1e1715180d402c8b413c2e..dac9d8ec5ce3019245d2327fb0c88818da07628b 100644 (file)
@@ -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 :");
index 98fe8e9a51b2e41315d90c53aed2202dd48c6ace..ab41d772673c9c7cd60a0ab5735eb58365d74d5f 100644 (file)
@@ -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;