[llvm] [X86] Don't save/restore fp around longjmp instructions (PR #102556)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 13:21:10 PDT 2024
================
@@ -174,6 +175,9 @@ class X86MachineFunctionInfo : public MachineFunctionInfo {
bool FPClobberedByCall = false;
bool BPClobberedByCall = false;
+ // A set of instructions clobber FP generated from longjmp.
+ SmallSet<MachineInstr *, 2> LongJmpMIClobberFP;
----------------
rnk wrote:
I like that approach, although there is some risk that the FrameDestroy flag is used to detect epilogue code. Longjmp instructions are effectively epilogue code: it tears down the frame and replaces it.
https://github.com/llvm/llvm-project/pull/102556
More information about the llvm-commits
mailing list