[llvm] [BOLT][BTI] Refactor: move applyBTIFixup under MCPlusBuilder (PR #177164)
Gergely Bálint via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 01:15:18 PST 2026
bgergely0 wrote:
> In this particular example we may be OK: it's a dummy symbol, so it shouldn't lead to any BTI patching. But I agree to leave this to a future, more careful refactoring.
We wouldn't be ok with the current way of doing things: requesting a BTI to a symbol to which BOLT cannot add a BTI means that the produced binary is potentially BTI-unsound, and hence BOLT would terminate optimisations with an error.
Thanks for the approval, I will address the nits and go ahead with merging, unless there are more concerns.
https://github.com/llvm/llvm-project/pull/177164
More information about the llvm-commits
mailing list