[llvm-commits] [llvm] r159695 - in /llvm/trunk: lib/Target/X86/X86InstrInfo.cpp lib/Target/X86/X86InstrInfo.h lib/Target/X86/X86TargetMachine.cpp test/CodeGen/X86/early-ifcvt.ll
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jul 6 21:12:49 PDT 2012
On Jul 6, 2012, at 8:52 PM, Chris Lattner <clattner at apple.com> wrote:
> Ok. Load store targets can still fold memops into copies though...
Yup, that is handled by TargetInstrInfo::foldMemoryOperand(). Load/store targets don't even need to implement the hook.
Rather than baking memop folding into TableGen, I think a generic instruction table generator backend would be interesting. Something like: "Generate a 2D table indexed by [CondCode][RegClass] of instructions with isCMov = 1".
/jakob
More information about the llvm-commits
mailing list