summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-05-13 01:12:21 +0000
committerAndrew Trick <atrick@apple.com>2011-05-13 01:12:21 +0000
commit14ba1ff133bc891869eef9ebb28095062ed71e77 (patch)
tree928403e5bf6121933cbdda564585b0e0396feb0b
parent88882247d2e1bb70103062faf5bd15dd8a30b2d1 (diff)
downloadllvm-14ba1ff133bc891869eef9ebb28095062ed71e77.tar.gz
llvm-14ba1ff133bc891869eef9ebb28095062ed71e77.tar.bz2
llvm-14ba1ff133bc891869eef9ebb28095062ed71e77.tar.xz
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
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index ab9e21a9ec..99f5e7fd66 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();