From: Julian Seward Date: Tue, 12 Oct 2004 09:51:56 +0000 (+0000) Subject: Even more minor PutI/GetI cleanups. X-Git-Tag: svn/VALGRIND_3_0_1^2~1014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adb689b725563f74c823a1e0670ef78bf10baf61;p=thirdparty%2Fvalgrind.git Even more minor PutI/GetI cleanups. git-svn-id: svn://svn.valgrind.org/vex/trunk@320 --- diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index 8f9618ccaa..ae8febdca5 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -2278,7 +2278,6 @@ IRExpr* findPutI ( IRBB* bb, Int startHere, IRArray* descrG, IRExpr* ixG, Int biasG ) { Int j; - UInt minoffP, maxoffP, minoffG, maxoffG; IRStmt* st; GSAliasing relation; @@ -2291,8 +2290,7 @@ IRExpr* findPutI ( IRBB* bb, Int startHere, } /* Scan backwards in bb from startHere to find a suitable PutI - binding for (descr, tmp, bias), if any. */ - getArrayBounds( descrG, &minoffG, &maxoffG ); + binding for (descrG, ixG, biasG), if any. */ for (j = startHere; j >= 0; j--) { st = bb->stmts[j]; @@ -2351,6 +2349,9 @@ IRExpr* findPutI ( IRBB* bb, Int startHere, } /* if (st->tag == Ist_PutI) */ + /* Figure out what to do here -- be conservative. */ + vassert(st->tag != Ist_Dirty); + } /* for */ /* No valid replacement was found. */