[Mlir-commits] [mlir] [mlir][LLVMIR] Handle missing functions in CGProfile module flags (PR #169517)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 26 09:14:34 PST 2025
Men-cotton wrote:
One more relevant spot: `StripDeadCGProfilePass` drops null edges before codegen. It rebuilds the `CG Profile` flag keeping only edges whose operands contain no `nullptr`:
https://github.com/llvm/llvm-project/blob/cca66a21c20537171712b3adf35b4b82de5f2ad5/llvm/lib/Transforms/IPO/StripSymbols.cpp#L303-L318
So verifier allows nulls, object emission skips them, and this pass proactively strips them.
https://github.com/llvm/llvm-project/pull/169517
More information about the Mlir-commits
mailing list