[llvm] [AArch64][MachineOutliner] Allow calls to be outlined when PAC is enabled (PR #230840)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 19:21:32 PDT 2026


================
@@ -10587,6 +10587,11 @@ AArch64InstrInfo::getOutliningCandidateInfo(
       int SPValue = 0;
       for (auto &MI : C) {
         if (MI.modifiesRegister(AArch64::SP, &TRI)) {
+          // Calls implicitly modify the stack, but they are already vetted by
+          // getOutliningTypeImpl to only be outlined as safe tail-calls.
+          if (MI.isCall())
----------------
efriedma-quic wrote:

We should make sure we have sufficient coverage for the new hasIllegalSPModification.  Might involve modifying existing tests so they trigger LR spilling.

https://github.com/llvm/llvm-project/pull/230840


More information about the llvm-commits mailing list