another trivial cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-09-10 14:55:05 +00:00
parent 44abf85ae7
commit a176a8bb39

View File

@ -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