[llvm] [CFI][stackprobe] Shrink wrapper select safe prologue insertion block when inline stack probing is enabled (PR #81676)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 11:12:17 PST 2024
================
@@ -957,6 +957,15 @@ bool ShrinkWrap::runOnMachineFunction(MachineFunction &MF) {
if (!ArePointsInteresting())
return Changed;
+ const TargetLowering *TLI = MF.getSubtarget().getTargetLowering();
+ while (TLI->hasInlineStackProbe(MF) &&
----------------
momchil-velikov wrote:
`TLI->hasInlineStackProbe(MF)` is a loop invariant, no need to be in the condition.
https://github.com/llvm/llvm-project/pull/81676
More information about the llvm-commits
mailing list