mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add missing check
llvm-svn: 17706
This commit is contained in:
parent
d1381380ae
commit
c531e090db
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user