[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 4 14:18:38 PST 2025
pcc wrote:
> > The frontend is expected to add unlikely annotations and we don't want this function to override them.
>
> To the function itself? I don't see how the frontend could add unlikely annotations to a synthetic branch constructed by this pass.
Ah, this is the case where the intrinsic isn't used by a conditional branch. Since that case is not expected to occur frequently in practice, it's fine to put anything we want on this branch.
https://github.com/llvm/llvm-project/pull/170752
More information about the llvm-branch-commits
mailing list