[llvm] [LICM] Compute funclet block colors lazily on first use (PR #221230)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 01:00:40 PDT 2026


abhinav-phi wrote:

Closing as superseded by #221954, which landed this morning: equivalent lazy block-color computation in `LoopSafetyInfo` (via `std::optional`) plus the same LICM change to stop `isNotUsedOrFoldableInLoop` from querying the map speculatively — that also fixes #221162. The merge conflict on this branch is a direct consequence of the overlap.

This approach was independently derived here (and validated by the #221162 reporter's instrumented build: byte-identical optimized IR, all transform tests passing), so it's good to see the exact same design land from the maintainer side. Thanks @nikic and @ashi009 — happy to have this compile-time regression fixed either way.


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


More information about the llvm-commits mailing list