fmayer wrote: What is the aim of this change? IMO the way it was before more explicitly models what we want: now that BTI is determined on a per-function, not per-module basis, this is the information we should use. https://github.com/llvm/llvm-project/pull/141917