diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-08-31 22:12:16 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-08-31 22:12:16 +0000 |
commit | bbdbb0550b8397fa00e0376a0c3bb312f51c0dfa (patch) | |
tree | c0b91ad461c2cd1a0229bad6cdea218ce1c001ea | |
parent | 94083149fd6891c8a72472cf1814fa6600a75979 (diff) | |
download | external_llvm-bbdbb0550b8397fa00e0376a0c3bb312f51c0dfa.zip external_llvm-bbdbb0550b8397fa00e0376a0c3bb312f51c0dfa.tar.gz external_llvm-bbdbb0550b8397fa00e0376a0c3bb312f51c0dfa.tar.bz2 |
Add selection of RegOp2MemOpTable3 to canFoldMemoryOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163029 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 8d4a2b4..42ea012 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -3941,6 +3941,8 @@ bool X86InstrInfo::canFoldMemoryOperand(const MachineInstr *MI, OpcodeTablePtr = &RegOp2MemOpTable1; } else if (OpNum == 2) { OpcodeTablePtr = &RegOp2MemOpTable2; + } else if (OpNum == 3) { + OpcodeTablePtr = &RegOp2MemOpTable3; } if (OpcodeTablePtr && OpcodeTablePtr->count(Opc)) |