mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Some notes on better load folding we could do
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0300352103
commit
b14ca605d7
@ -520,6 +520,7 @@ MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr *MI,
|
||||
{ X86::TEST16rr, X86::TEST16rm },
|
||||
{ X86::TEST32rr, X86::TEST32rm },
|
||||
{ X86::TEST8rr, X86::TEST8rm },
|
||||
// FIXME: TEST*rr EAX,EAX ---> CMP [mem], 0
|
||||
{ X86::UCOMISDrr, X86::UCOMISDrm },
|
||||
{ X86::UCOMISSrr, X86::UCOMISSrm },
|
||||
{ X86::XCHG16rr, X86::XCHG16rm },
|
||||
@ -667,6 +668,7 @@ MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr *MI,
|
||||
{ X86::SUBPSrr, X86::SUBPSrm },
|
||||
{ X86::SUBSDrr, X86::SUBSDrm },
|
||||
{ X86::SUBSSrr, X86::SUBSSrm },
|
||||
// FIXME: TEST*rr -> swapped operand of TEST*mr.
|
||||
{ X86::UNPCKHPDrr, X86::UNPCKHPDrm },
|
||||
{ X86::UNPCKHPSrr, X86::UNPCKHPSrm },
|
||||
{ X86::UNPCKLPDrr, X86::UNPCKLPDrm },
|
||||
|
Loading…
Reference in New Issue
Block a user