[PATCH] D158668: Add getLikelyBranchWeight helper function

Matthias Braun via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 23 15:21:53 PDT 2023


MatzeB added a comment.

> On the other hand, I dislike exposing some internal detail of a pass.

I think the question to ask is whether a concept like "likely branch" or "unlikely branch" shouldn't be more universal and not be a pass internal detail? Otherwise it feels like my patches and other places would need to insert new `llvm.expect` usages into the IR and litter the pass pipeline with more instances of the LowerExpect pass which seems overkill for little gain to me...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158668



More information about the cfe-commits mailing list