[llvm] [X86InstrInfo] support memfold on spillable inline asm (PR #70832)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 04:04:14 PST 2023
================
@@ -578,28 +578,37 @@ static void foldInlineAsmMemOperand(MachineInstr *MI, unsigned OpNo, int FI,
foldInlineAsmMemOperand(MI, TiedTo, FI, TII);
}
- // Change the operand from a register to a frame index.
- MO.ChangeToFrameIndex(FI, MO.getTargetFlags());
-
- SmallVector<MachineOperand, 4> NewOps;
- TII.getFrameIndexOperands(NewOps);
+ SmallVector<MachineOperand, 5> NewOps;
+ TII.getFrameIndexOperands(NewOps, FI);
----------------
phoebewang wrote:
The old behavoir is to change to frame index. Does it mean we need to call this method in `TargetInstrInfo::getFrameIndexOperands` for other targets?
https://github.com/llvm/llvm-project/pull/70832
More information about the llvm-commits
mailing list