mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Fix an unfolding bug.
llvm-svn: 43212
This commit is contained in:
parent
d06938ff7f
commit
ddeab10144
@ -1224,6 +1224,7 @@ bool X86RegisterInfo::unfoldMemoryOperand(MachineFunction &MF, MachineInstr *MI,
|
||||
MIB.addReg(Reg, true);
|
||||
for (unsigned i = 0, e = BeforeOps.size(); i != e; ++i)
|
||||
MIB = X86InstrAddOperand(MIB, BeforeOps[i]);
|
||||
if (FoldedLoad)
|
||||
MIB.addReg(Reg);
|
||||
for (unsigned i = 0, e = AfterOps.size(); i != e; ++i)
|
||||
MIB = X86InstrAddOperand(MIB, AfterOps[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user