[PATCH] D114009: [BPI] Look-up tables for non-loop branches. NFC.

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 18 07:18:35 PST 2021


SjoerdMeijer updated this revision to Diff 388192.
SjoerdMeijer added a comment.

Thanks for the suggestion, the probabilities are now encoded directly into the tables.

I thought this table based approach to be compacter and thus easier to check. If this is not the case, we can revisit  it, or I can abandon change as as I don't have too strong opinions (but again, I thought it would help a bit) . And while doing this, I noticed tests for pointer heuristics are missing, so added them.


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

https://reviews.llvm.org/D114009

Files:
  llvm/lib/Analysis/BranchProbabilityInfo.cpp
  llvm/test/Analysis/BranchProbabilityInfo/pointer_heuristics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114009.388192.patch
Type: text/x-patch
Size: 13337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211118/c6c06dae/attachment.bin>


More information about the llvm-commits mailing list