[llvm-branch-commits] [llvm] [SLU][profcheck] create likely branch weights for guard->branch (PR #164271)
Mircea Trofin via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Oct 20 08:30:02 PDT 2025
mtrofin wrote:
The `llvm.experimental.guard` intrinsic is a `call`, so its metadata - if present - would be one value (as per `Verifier::visitProfMetadata`). That wouldn't be a correct `branch_weights` metadata. Likely, `GI->getMetadata(LLVMContext::MD_prof)` was always `nullptr`.
We can bias away from deopt instead.
https://github.com/llvm/llvm-project/pull/164271
More information about the llvm-branch-commits
mailing list