mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Fix an unfolding bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbfb9b27ef
commit
42b08be973
@ -1224,7 +1224,8 @@ 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]);
|
||||
MIB.addReg(Reg);
|
||||
if (FoldedLoad)
|
||||
MIB.addReg(Reg);
|
||||
for (unsigned i = 0, e = AfterOps.size(); i != e; ++i)
|
||||
MIB = X86InstrAddOperand(MIB, AfterOps[i]);
|
||||
for (unsigned i = 0, e = ImpOps.size(); i != e; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user