[llvm-commits] [llvm] r148261 - /llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp
Hal Finkel
hfinkel at anl.gov
Mon Jan 16 15:22:50 PST 2012
Author: hfinkel
Date: Mon Jan 16 17:22:50 2012
New Revision: 148261
URL: http://llvm.org/viewvc/llvm-project?rev=148261&view=rev
Log:
Cleanup PPC RLWINM8 vs RLWINM
No test case: output assembly will be identical.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp?rev=148261&r1=148260&r2=148261&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp Mon Jan 16 17:22:50 2012
@@ -528,7 +528,7 @@
if (DestReg != PPC::CR0) {
unsigned ShiftBits = getPPCRegisterNumbering(DestReg)*4;
// rlwinm r11, r11, 32-ShiftBits, 0, 31.
- BuildMI(MBB, II, dl, TII.get(PPC::RLWINM), Reg)
+ BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg)
.addReg(Reg).addImm(32-ShiftBits).addImm(0)
.addImm(31);
}
More information about the llvm-commits
mailing list