[llvm] [AArch64] Fix stack probing clobbering flags (PR #81879)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 11:01:12 PST 2024
================
@@ -1058,9 +1058,14 @@ bool AArch64FrameLowering::canUseAsPrologue(
return false;
}
+ // Certain stack probing sequences might clobber flags, then we can't use
+ // the block as a prologue if the flags register is a live-in.
+ if (TLI->hasInlineStackProbe(*MF) && MBB.isLiveIn(AArch64::NZCV))
----------------
yozhu wrote:
If we check `hasStackProbing()` here, do we need to do the same for the condition fixed in #81878 ?
https://github.com/llvm/llvm-project/pull/81879
More information about the llvm-commits
mailing list