]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Even more minor PutI/GetI cleanups.
authorJulian Seward <jseward@acm.org>
Tue, 12 Oct 2004 09:51:56 +0000 (09:51 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 12 Oct 2004 09:51:56 +0000 (09:51 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@320

VEX/priv/ir/iropt.c

index 8f9618ccaae4cb2762433be97d53281de0740a0c..ae8febdca576faea663686e5033e6d9f55c855a9 100644 (file)
@@ -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. */