From 735da40c6ab5a85257e6a52cc293b8e3883723bc Mon Sep 17 00:00:00 2001 From: johanknol Date: Wed, 10 Oct 2001 12:25:04 +0000 Subject: [PATCH] fixed a loop optimation bug git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1385 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCloop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SDCCloop.c b/src/SDCCloop.c index 87523a21..7384fa13 100644 --- a/src/SDCCloop.c +++ b/src/SDCCloop.c @@ -231,7 +231,8 @@ DEFSETFUNC (addToExitsMarkDepth) V_ARG (region *, lr); /* mark the loop depth of this block */ - if (!ebp->depth) + //if (!ebp->depth) + if (ebp->depthdepth = depth; /* put the loop region info in the block */ @@ -803,7 +804,7 @@ basicInduction (region * loopReg, eBBlock ** ebbs, int count) "this will keep the regressions tests going.\n", __FILE__, __LINE__); continue; - } continue; + } /* replace the inducted variable by the iTemp */ replaceSymBySym (loopReg->regBlocks, IC_RESULT (ic), IC_RIGHT (ic)); -- 2.30.2