[llvm] [AArch64] Add streaming-mode stack hazards. (PR #98956)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 16:45:50 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;
----------------
efriedma-quic wrote:
What's the interaction here? Just that scavenging could introduce hazards?
https://github.com/llvm/llvm-project/pull/98956
More information about the llvm-commits
mailing list