another trivial cleanup
authorChris Lattner <sabre@nondot.org>
Wed, 10 Sep 2003 14:55:05 +0000 (14:55 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Sep 2003 14:55:05 +0000 (14:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8435 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/InductionVariable.cpp

index 4c53c967863cfb7e01673ed2eb8e9fc787eaf4a7..3e33ca1335efa2c0708ce4fd39d37fab7630e26b 100644 (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