[llvm-commits] [llvm] r131277 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Andrew Trick
atrick at apple.com
Thu May 12 18:12:21 PDT 2011
Author: atrick
Date: Thu May 12 20:12:21 2011
New Revision: 131277
URL: http://llvm.org/viewvc/llvm-project?rev=131277&view=rev
Log:
Convert SimplifyIVUsers into a worklist instead of a single pass over
the users.
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=131277&r1=131276&r2=131277&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Thu May 12 20:12:21 2011
@@ -458,7 +458,7 @@
/// 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();
More information about the llvm-commits
mailing list