[llvm-commits] [llvm] r47478 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
clattner at apple.com
Fri Feb 22 09:20:40 PST 2008
On Feb 22, 2008, at 2:00 AM, Zhou Sheng wrote:
> 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.
Nice catch! Testcase plz,
-Chris
> 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;
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list