From: Andrew Trick Date: Fri, 13 May 2011 01:12:21 +0000 (+0000) Subject: Convert SimplifyIVUsers into a worklist instead of a single pass over X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=14ba1ff133bc891869eef9ebb28095062ed71e77;p=oota-llvm.git Convert SimplifyIVUsers into a worklist instead of a single pass over the users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131277 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index ab9e21a9ec7..99f5e7fd66b 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -458,7 +458,7 @@ void IndVarSimplify::RewriteNonIntegerIVs(Loop *L) { /// loop. IVUsers is treated as a worklist. Each successive simplification may /// push more users which may themselves be candidates for simplification. void IndVarSimplify::SimplifyIVUsers() { - for (IVUsers::iterator I = IU->begin(), E = IU->end(); I != E; ++I) { + for (IVUsers::iterator I = IU->begin(); I != IU->end(); ++I) { Instruction *UseInst = I->getUser(); Value *IVOperand = I->getOperandValToReplace();