[llvm] [FuncAttrs][LTO] Relax norecurse attribute inference during postlink LTO (PR #158608)

Usha Gupta via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 09:11:07 PDT 2025


================
@@ -0,0 +1,42 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes --check-globals all --version 5
+; RUN: opt -passes=norecurse-lto-inference -S %s | FileCheck %s
+
+; This is a negative test which results in RefSCC with size > 1.
+; RefSCC : [(f2), (f1)]
+; --- SCC A (f1) --- size() = 1
+; f1 has its address taken (in main) and calls f2 indirectly.
----------------
usha1830 wrote:

Thanks for catching this. I simplified the test and forgot to remove this unnecessary comment. Removed now.

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


More information about the llvm-commits mailing list