[PATCH] D131287: Fix branch weight in FoldCondBranchOnValueKnownInPredecessor pass in SimplifyCFG

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 23:17:15 PDT 2022


davidxl added a comment.

I did not look at the patch in details. At a high level, it seems that the pass itself does not use profile data to make decisions, so  BPI/BFI is really not needed. Instead, directly updating the profile meta data as transformation happens is reasonable (unless BFI provides updating APIs for cases like this, which is not the case).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131287



More information about the llvm-commits mailing list