Add selection of RegOp2MemOpTable3 to canFoldMemoryOperand

llvm-svn: 163029
This commit is contained in:
Craig Topper 2012-08-31 22:12:16 +00:00
parent f5cf7903d9
commit 7573c8f081
1 changed files with 2 additions and 0 deletions

View File

@ -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))