projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc48bd
)
Actually return true when a change has been made
author
Chris Lattner
<sabre@nondot.org>
Wed, 5 Dec 2001 19:41:33 +0000
(19:41 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 5 Dec 2001 19:41:33 +0000
(19:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1425
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/IndVarSimplify.cpp
b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 3b64756cb1961453f1b1adb72901d5f3a82eaebe..d03b4f3f400dba3b666664f4c639d93839beda44 100644
(file)
--- a/
lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/
lib/Transforms/Scalar/IndVarSimplify.cpp
@@
-107,6
+107,7
@@
static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) {
assert(IndVars.back().InductionType == InductionVariable::Cannonical &&
"Just inserted cannonical indvar that is not cannonical!");
Cannonical = &IndVars.back();
+ Changed = true;
}
#ifdef DEBUG
@@
-177,6
+178,7
@@
static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) {
Header->getInstList().remove(IV->Phi);
delete IV->Phi;
InsertPos--; // Deleted an instr, decrement insert position
+ Changed = true;
}
}