[llvm] [PassBuilder] Add extra ModuleInliner/SROA/SimplifyCFG/LICM to late FullLTO passes (PR #197678)

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 02:24:27 PDT 2026


momchil-velikov wrote:

The reason was explained here: https://github.com/llvm/llvm-project/pull/197678#discussion_r3595123575

> Is it more like, loop unrolling and vectorization swing the inline cost heuristics, so not running them in pre-LTO causes us to skip inlining, so we have to make up for it with more post-LTO inlining?

It's kind of opposite, pre-LTO SLP creates LTO inlining opportunities. When pre-LTO SLP is removed, we lose the SLP -> Inliner phase sequence, this patch re-establishes it.


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


More information about the llvm-commits mailing list