[llvm] [AArch64] Add streaming-mode stack hazards. (PR #98956)

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 02:21:41 PDT 2024


================
@@ -3798,6 +3952,10 @@ bool AArch64FrameLowering::enableStackSlotScavenging(
   // function doesn't use a FP.
   if (AFI->hasStreamingModeChanges() && !hasFP(MF))
     return false;
+  // Don't allow register salvaging with hazard slots, in case it moves objects
+  // into the wrong place.
+  if (AFI->hasStackHazardSlotIndex())
+    return false;
----------------
davemgreen wrote:

Yep - in some cases it was moving the FPR registers into the empty slot next to fp or the scavenged register.

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


More information about the llvm-commits mailing list