[llvm-commits] [llvm] r104260 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Dan Gohman
gohman at apple.com
Thu May 20 12:16:03 PDT 2010
Author: djg
Date: Thu May 20 14:16:03 2010
New Revision: 104260
URL: http://llvm.org/viewvc/llvm-project?rev=104260&view=rev
Log:
Set Changed to true when canonicalizing ICmp operand order; even though
it isn't a very interesting change, it's a change nonetheless.
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=104260&r1=104259&r2=104260&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Thu May 20 14:16:03 2010
@@ -1997,6 +1997,7 @@
if (NV == LF.OperandValToReplace) {
CI->setOperand(1, CI->getOperand(0));
CI->setOperand(0, NV);
+ Changed = true;
}
// x == y --> x - y == 0
More information about the llvm-commits
mailing list