From ef3a5fe6c031ef73a217dd88e8e2da6562ea8b55 Mon Sep 17 00:00:00 2001 From: johanknol Date: Fri, 4 Apr 2003 13:24:15 +0000 Subject: [PATCH] Undid the fix for bug #519584 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2479 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCloop.c | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/SDCCloop.c b/src/SDCCloop.c index 55021f34..f43e4837 100644 --- a/src/SDCCloop.c +++ b/src/SDCCloop.c @@ -259,11 +259,8 @@ DEFSETFUNC (createLoop) { edge *ep = item; V_ARG (set **, allRegion); - V_ARG (eBBlock **,ebbs); - V_ARG (int,count); region *aloop = newRegion (); eBBlock *block; - int dfMin = count ,dfMax =0, i; /* make sure regionStack is empty */ while (!STACK_EMPTY (regionStack)) @@ -283,32 +280,6 @@ DEFSETFUNC (createLoop) aloop->entry = ep->to; - /* set max & min dfNum for loopRegion */ - for ( block = setFirstItem(aloop->regBlocks); block; - block = setNextItem(aloop->regBlocks)) { - if (block->dfnum > dfMax) dfMax = block->dfnum; - if (block->dfnum < dfMin) dfMin = block->dfnum; - } - - /* all blocks that have dfnumbers between dfMin & dfMax are also - part of loop */ - for (i = 0 ; i < count ; i++) { - if (ebbs[i]->dfnum > dfMin && - ebbs[i]->dfnum < dfMax && - !isinSet(aloop->regBlocks,ebbs[i])) { - if (!ebbs[i]->partOfLoop) { - ebbs[i]->partOfLoop = aloop; - } - } - } - - /* 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; @@ -1183,7 +1154,7 @@ createLoopRegions (eBBlock ** ebbs, int count) /* for each of these back edges get the blocks that */ /* constitute the loops */ - applyToSet (bEdges, createLoop, &allRegion, ebbs,count); + applyToSet (bEdges, createLoop, &allRegion); /* now we will create regions from these loops */ /* loops with the same entry points are considered to be the */ -- 2.30.2