[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 18 17:16:28 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.170 -> 1.171
---
Log message:
Stop adding bogus operands to variable shifts on X86. These instructions
only take one operand. The other comes implicitly in through CL.
---
Diffs of the changes: (+2 -2)
X86ISelPattern.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.170 llvm/lib/Target/X86/X86ISelPattern.cpp:1.171
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.170 Tue Aug 16 16:56:37 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Thu Aug 18 19:16:17 2005
@@ -3223,7 +3223,7 @@
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 @@
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))) {
More information about the llvm-commits
mailing list