projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8850a5
)
Fixed a typo.
author
Zhou Sheng
<zhousheng00@gmail.com>
Fri, 22 Feb 2008 10:00:35 +0000
(10:00 +0000)
committer
Zhou Sheng
<zhousheng00@gmail.com>
Fri, 22 Feb 2008 10:00:35 +0000
(10:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47478
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index d6d8781354203b5149817bce12ecc81855e5e5a2..e17d16443a1cb9eb4cf42951aa1d285634773d62 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-2428,7
+2428,7
@@
Instruction *InstCombiner::visitSub(BinaryOperator &I) {
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;
}