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:
44205ca
)
Add missing check
author
Chris Lattner
<sabre@nondot.org>
Sat, 13 Nov 2004 20:04:38 +0000
(20:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 13 Nov 2004 20:04:38 +0000
(20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17706
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelSimple.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelSimple.cpp
b/lib/Target/X86/X86ISelSimple.cpp
index e5cf618fc10f37485e7b40a44bbf4d69eecff56a..37572aaefd4980c25b1a0a5a55f17a28ff14539b 100644
(file)
--- a/
lib/Target/X86/X86ISelSimple.cpp
+++ b/
lib/Target/X86/X86ISelSimple.cpp
@@
-2925,7
+2925,7
@@
void X86ISel::emitShiftOperation(MachineBasicBlock *MBB,
//
if (ConstantUInt *CUI = dyn_cast<ConstantUInt>(ShiftAmount)) {
unsigned Amount = CUI->getValue();
- if (Amount == 1) { // X << 1 == X+X
+ if (Amount == 1
&& isLeftShift
) { // X << 1 == X+X
BuildMI(*MBB, IP, X86::ADD32rr, 2,
DestReg).addReg(SrcReg).addReg(SrcReg);
BuildMI(*MBB, IP, X86::ADC32rr, 2,