mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +00:00
Stop adding bogus operands to variable shifts on X86. These instructions
only take one operand. The other comes implicitly in through CL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22887 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73bfa71524
commit
fd444b2a69
@ -3223,7 +3223,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
case MVT::i32: Opc = X86::SHL32rCL; break;
|
||||
}
|
||||
BuildMI(BB, X86::MOV8rr, 1, X86::CL).addReg(Tmp2);
|
||||
BuildMI(BB, Opc, 2, Result).addReg(Tmp1).addReg(Tmp2);
|
||||
BuildMI(BB, Opc, 1, Result).addReg(Tmp1);
|
||||
return Result;
|
||||
case ISD::SRL:
|
||||
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
|
||||
@ -3253,7 +3253,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
case MVT::i32: Opc = X86::SHR32rCL; break;
|
||||
}
|
||||
BuildMI(BB, X86::MOV8rr, 1, X86::CL).addReg(Tmp2);
|
||||
BuildMI(BB, Opc, 2, Result).addReg(Tmp1).addReg(Tmp2);
|
||||
BuildMI(BB, Opc, 1, Result).addReg(Tmp1);
|
||||
return Result;
|
||||
case ISD::SRA:
|
||||
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
|
||||
|
Loading…
Reference in New Issue
Block a user