[llvm] [ShrinkWrap][NFC] Test with load from constant pool preventing shrink (PR #162476)

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 13:12:01 PDT 2025


================
@@ -24,8 +21,11 @@
     br label %common.ret
   }
 ...
-# Following code has a load from constant pool. Accessing constant pool must not
-# be considered as a stack access and hence, shrink wrapping must happen.
+# FIXME: Following code has a load from constant pool. Accessing constant pool
+# must not be considered as a stack access and hence, shrink wrapping must
+# happen.
+# CHECK-NOT: savePoint
+# CHECK-NOT: restorePoint
----------------
qcolombet wrote:

Please add a CHECK line that match on the constant pool load.

The CHECK-NOT line still don't tell me why this is testing that shrink wrapping happens/doesn't happen.
I don't remember the implementation details, but assuming that when shrink wrapping happens we create a `savePoint` or `restorePoint` basic block, just check for that and say it here.

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


More information about the llvm-commits mailing list