[llvm] [TII][X86] Do not schedule frame-setup/frame-destory instructions (PR #96611)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 21:05:55 PDT 2024
================
@@ -8832,6 +8832,11 @@ bool X86InstrInfo::isSchedulingBoundary(const MachineInstr &MI,
Opcode == X86::PLDTILECFGV)
return true;
+ // Frame setup and destory can't be scheduled around.
+ if (MI.getFlag(MachineInstr::FrameSetup) ||
+ MI.getFlag(MachineInstr::FrameDestroy))
----------------
KanRobert wrote:
Should we put it in TargetInstrInfo::isSchedulingBoundary?
https://github.com/llvm/llvm-project/pull/96611
More information about the llvm-commits
mailing list