[PATCH] D158680: Interpet {branch_weights 1, 0} as likely/unlikely

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 15:58:55 PDT 2023


MatzeB added a comment.

And here's another straw-man proposal to get a discussion going: Because I am having trouble to say what the difference between `branch_weights 1, 0` and `llvm.expect` even is: This change turns any `branch_weights X, 0` or `branch_weights 0, X` into an abstract representation of likely/unlikely that `BranchProbabilityInfo` will interpret when computing the analysis...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158680/new/

https://reviews.llvm.org/D158680



More information about the llvm-commits mailing list