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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 05:49:29 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.
----------------
david-arm wrote:

nit: It looks like f1 is called directly from main it's address is taken in f2 I think?

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


More information about the llvm-commits mailing list