[llvm] [CFI][stackprobe] Shrink wrapper select safe prologue insertion block when inline stack probing is enabled (PR #81676)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 13:59:21 PST 2024


================
@@ -957,6 +957,15 @@ bool ShrinkWrap::runOnMachineFunction(MachineFunction &MF) {
   if (!ArePointsInteresting())
     return Changed;
 
+  const TargetLowering *TLI = MF.getSubtarget().getTargetLowering();
----------------
yozhu wrote:

> Thus we can set this variable for blocks with NZCV live-in

A block with NZCV live-in wouldn't necessarily be selected for prologue insertion, so `StackAddressUsed` still need to be calculated by iterating through and examining each instruction.

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


More information about the llvm-commits mailing list