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:
c4f7e80
)
simplify some code and resolve a fixme.
author
Chris Lattner
<sabre@nondot.org>
Sat, 3 Apr 2010 06:06:59 +0000
(06:06 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 3 Apr 2010 06:06:59 +0000
(06:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100272
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 41b216b9270ce2dbdb8ef837583f2483149f3d13..c658106d38f82fed7734f1fc1e432553e54d0c82 100644
(file)
--- a/
lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/
lib/Transforms/Scalar/IndVarSimplify.cpp
@@
-745,10
+745,8
@@
void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PH) {
// original PHI.
ConstantInt *NewEV = ConstantInt::get(Int32Ty, ExitValue);
- // FIXME: This is probably wrong.
- Value *LHS = NewPHI->getIncomingValue(1);
- Value *RHS = NewEV;
- ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, LHS, RHS, EC->getName());
+ ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, NewAdd, NewEV,
+ EC->getName());
// In the following deletions, PH may become dead and may be deleted.
// Use a WeakVH to observe whether this happens.