[PATCH] D80618: Extend InvokeInst !prof branch_weights metadata to unwind branches

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 29 11:27:12 PDT 2020


xur added a comment.

Thanks for the fix. We also noticed that the branch weight for invoke instructions were not set properly, even thought we had the profile information in PGO.
I have a check that disables setting the branch weight metadata for IRPGO. Once this patch is in. I can remove that check. Of you can integrate that change into this patch.
It's in PGOUseFunc::setBranchWeights(). Just white-list InvokeInst.


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

https://reviews.llvm.org/D80618





More information about the llvm-commits mailing list