[llvm-commits] [llvm] r45476 - in /llvm/trunk/lib/Target: PowerPC/PPCInstrInfo.cpp X86/X86InstrInfo.cpp
Chris Lattner
sabre at nondot.org
Mon Dec 31 17:05:34 PST 2007
Author: lattner
Date: Mon Dec 31 19:05:34 2007
New Revision: 45476
URL: http://llvm.org/viewvc/llvm-project?rev=45476&view=rev
Log:
Fix a bug in my previous patch: refer to the impl not the pure virtual version. It's unclear why gcc would ever compile this...
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp?rev=45476&r1=45475&r2=45476&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp Mon Dec 31 19:05:34 2007
@@ -132,7 +132,7 @@
MachineInstr *PPCInstrInfo::commuteInstruction(MachineInstr *MI) const {
// Normal instructions can be commuted the obvious way.
if (MI->getOpcode() != PPC::RLWIMI)
- return TargetInstrInfo::commuteInstruction(MI);
+ return TargetInstrInfoImpl::commuteInstruction(MI);
// Cannot commute if it has a non-zero rotate count.
if (MI->getOperand(3).getImm() != 0)
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=45476&r1=45475&r2=45476&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Mon Dec 31 19:05:34 2007
@@ -575,7 +575,7 @@
// Fallthrough intended.
}
default:
- return TargetInstrInfo::commuteInstruction(MI);
+ return TargetInstrInfoImpl::commuteInstruction(MI);
}
}
More information about the llvm-commits
mailing list