]> git.gag.com Git - fw/sdcc/commitdiff
fixed a live range computing bug
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 27 Jun 2000 20:58:41 +0000 (20:58 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 27 Jun 2000 20:58:41 +0000 (20:58 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@291 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCClrange.c

index 7c71b130b3c4396277055e44c45302df25effd82..583aeb496f040c52ff0e28bc81933973627eebe6 100644 (file)
@@ -422,11 +422,11 @@ void markLiveRanges (eBBlock *ebp, eBBlock **ebbs, int count)
 
     /* for all the definitions in the block */
     /* compute and set the live from        */
-    if ( ebp->defSet && ! bitVectIsZero(ebp->defSet)) {
-       for ( i = 0 ; i < ebp->defSet->size ; i++ ) {
+    if ( ebp->ldefs && ! bitVectIsZero(ebp->ldefs)) {
+       for ( i = 0 ; i < ebp->ldefs->size ; i++ ) {
            iCode *dic;     
            
-           if (bitVectBitValue(ebp->defSet,i) &&          
+           if (bitVectBitValue(ebp->ldefs,i) &&           
                (dic = hTabItemWithKey(iCodehTab,i))) {
                
                /* if the definition has a from & it is greater */