[llvm] [Codegen] Spill/Restore FP/BP under option (PR #114791)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 10:31:47 PST 2024
================
@@ -77,6 +77,11 @@ using MBBVector = SmallVector<MachineBasicBlock *, 4>;
STATISTIC(NumLeafFuncWithSpills, "Number of leaf functions with CSRs");
STATISTIC(NumFuncSeen, "Number of functions seen in PEI");
+// Experimental Feature enables spilling and reload FP/BP
+static cl::opt<bool>
+ EnableSpillFPBP("enable-spill-fpbp",
+ cl::desc("Spill clobbered fp register to stack."),
+ cl::init(false), cl::Hidden);
----------------
mahesh-attarde wrote:
yes. I have worked out ir output out of llvm-reduce. I can share snippet or ir soon.
https://github.com/llvm/llvm-project/pull/114791
More information about the llvm-commits
mailing list