[llvm-commits] [llvm] r53564 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Dan Gohman
gohman at apple.com
Mon Jul 14 10:55:01 PDT 2008
Author: djg
Date: Mon Jul 14 12:55:01 2008
New Revision: 53564
URL: http://llvm.org/viewvc/llvm-project?rev=53564&view=rev
Log:
Fix uninitialized use of the Changed variable.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=53564&r1=53563&r2=53564&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Mon Jul 14 12:55:01 2008
@@ -1747,6 +1747,7 @@
SE = &getAnalysis<ScalarEvolution>();
TD = &getAnalysis<TargetData>();
UIntPtrTy = TD->getIntPtrType();
+ Changed = false;
// Find all uses of induction variables in this loop, and catagorize
// them by stride. Start by finding all of the PHI nodes in the header for
@@ -1831,6 +1832,7 @@
SE->deleteValueFromRecords(PN);
PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
DeadInsts.insert(PN);
+ Changed = true;
break;
}
}
More information about the llvm-commits
mailing list