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:
0d947ea
)
fix typeo
author
Chris Lattner
<sabre@nondot.org>
Sun, 18 Sep 2005 05:25:20 +0000
(
05:25
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 18 Sep 2005 05:25:20 +0000
(
05:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23383
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 63d77685a7102771502c8e158011ae3952d112a2..37e1f3f6ba45449a00750f43346bede299606712 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-3387,7
+3387,7
@@
Instruction *InstCombiner::visitShiftInst(ShiftInst &I) {
if (isLeftShift && XS->hasOneUse() && XS->getOperand(1) == CUI &&
XS->getOpcode() == Instruction::Shr) {
Instruction *YS = new ShiftInst(Instruction::Shl,
- Op0BO->getOperand(
0
), CUI,
+ Op0BO->getOperand(
1
), CUI,
Op0BO->getName());
InsertNewInstBefore(YS, I); // (Y << C)
Instruction *X = BinaryOperator::create(Op0BO->getOpcode(), YS,