[llvm] [Inliner] Put inline history into IR as !inline_history metadata (PR #190092)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 14:40:03 PDT 2026


Andarwinux wrote:

> @Andarwinux I can't repro since your tarball doesn't have the profile included. I also get a lot of other unrelated assertions. Could you get the IR with `-Wl,-save-temps` and get the IR of the module failing the verifier before the verifier runs? Or if not, even just more of the error message would be helpful, I think the verifier should have given more than just the error message you posted

```
!inline_history operands must be functions or null
!669 = distinct !{ptr @_ZN4llvm11SmallVectorINSt3__28functionIFNS1_8optionalIPNS_5ValueEEERKNS_10IRPositionEPKNS_17AbstractAttributeERbEEELj1EED2Ev, null, null, null}
!inline_history operands must be functions or null
!669 = distinct !{ptr @_ZN4llvm11SmallVectorINSt3__28functionIFNS1_8optionalIPNS_5ValueEEERKNS_10IRPositionEPKNS_17AbstractAttributeERbEEELj1EED2Ev, null, null, null}
!inline_history operands must be functions or null
!669 = distinct !{ptr @_ZN4llvm11SmallVectorINSt3__28functionIFNS1_8optionalIPNS_5ValueEEERKNS_10IRPositionEPKNS_17AbstractAttributeERbEEELj1EED2Ev, null, null, null}
!inline_history operands must be functions or null
!776 = distinct !{ptr @_ZN4llvm11SmallVectorINSt3__28functionIFbRNS_10AttributorEPKNS_17AbstractAttributeEEEELj1EED2Ev, null, null, null}
!inline_history operands must be functions or null
!776 = distinct !{ptr @_ZN4llvm11SmallVectorINSt3__28functionIFbRNS_10AttributorEPKNS_17AbstractAttributeEEEELj1EED2Ev, null, null, null}
LLVM ERROR: Broken module found, compilation aborted!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Running pass "verify" on module "build/toolchain/llvm-prefix/src/llvm-build/lib/libLLVMipo.a(Attributor.cpp.o at 1282512)"
#0 0x00005fe7ed1fb696 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) Signals.cpp:0:0
```
https://github.com/Andarwinux/_/releases/download/test/save-temps.7z

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


More information about the llvm-commits mailing list