[llvm-commits] [llvm] r47478 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Zhou Sheng
zhousheng00 at gmail.com
Fri Feb 22 02:00:36 PST 2008
Author: sheng
Date: Fri Feb 22 04:00:35 2008
New Revision: 47478
URL: http://llvm.org/viewvc/llvm-project?rev=47478&view=rev
Log:
Fixed a typo.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=47478&r1=47477&r2=47478&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Fri Feb 22 04:00:35 2008
@@ -2428,7 +2428,7 @@
ConstantInt *C2; // X*C1 - X*C2 -> X * (C1-C2)
if (X == dyn_castFoldableMul(Op1, C2))
- return BinaryOperator::createMul(Op1, Subtract(C1, C2));
+ return BinaryOperator::createMul(X, Subtract(C1, C2));
}
return 0;
}
More information about the llvm-commits
mailing list