[llvm-commits] CVS: llvm/lib/Analysis/InductionVariable.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 10 09:56:03 PDT 2003
Changes in directory llvm/lib/Analysis:
InductionVariable.cpp updated: 1.28 -> 1.29
---
Log message:
another trivial cleanup
---
Diffs of the changes:
Index: llvm/lib/Analysis/InductionVariable.cpp
diff -u llvm/lib/Analysis/InductionVariable.cpp:1.28 llvm/lib/Analysis/InductionVariable.cpp:1.29
--- llvm/lib/Analysis/InductionVariable.cpp:1.28 Wed Sep 10 09:51:49 2003
+++ llvm/lib/Analysis/InductionVariable.cpp Wed Sep 10 09:55:05 2003
@@ -215,10 +215,9 @@
DEBUG(std::cerr << "sci:" << *SCI);
Value *condVal0 = SCI->getOperand(0);
Value *condVal1 = SCI->getOperand(1);
- Value *indVar = 0;
- // the induction variable is the one coming from the backedge
- indVar = Phi->getIncomingValue(L->contains(Phi->getIncomingBlock(1)));
+ // The induction variable is the one coming from the backedge
+ Value *indVar = Phi->getIncomingValue(L->contains(Phi->getIncomingBlock(1)));
// Check to see if indVar is one of the parameters in SCI and if the other is
More information about the llvm-commits
mailing list