diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-10 14:55:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-10 14:55:05 +0000 |
commit | 66645df54c6de7ef01ce08a8e4de6fa28c75f726 (patch) | |
tree | 9d1ce90376e3e8154b588a80a84e67c921309882 /llvm/lib/Analysis | |
parent | 960a857dac7d598fa658cbdf2c7ad75e883bbfed (diff) | |
download | bcm5719-llvm-66645df54c6de7ef01ce08a8e4de6fa28c75f726.tar.gz bcm5719-llvm-66645df54c6de7ef01ce08a8e4de6fa28c75f726.zip |
another trivial cleanup
llvm-svn: 8435
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/InductionVariable.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/InductionVariable.cpp b/llvm/lib/Analysis/InductionVariable.cpp index 4c53c967863..3e33ca1335e 100644 --- a/llvm/lib/Analysis/InductionVariable.cpp +++ b/llvm/lib/Analysis/InductionVariable.cpp @@ -215,10 +215,9 @@ Value *InductionVariable::getExecutionCount(LoopInfo *LoopInfo) { 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 |