[PATCH] D85781: [BPI] Improve static heuristics for integer comparisons

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 14:10:38 PDT 2020


xbolva00 created this revision.
xbolva00 added a reviewer: ebrevnov.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
xbolva00 requested review of this revision.

Similarly as for pointers, even for integers a == b is usually false.

GCC also uses this heuristic.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85781

Files:
  llvm/include/llvm/Analysis/BranchProbabilityInfo.h
  llvm/lib/Analysis/BranchProbabilityInfo.cpp
  llvm/test/Analysis/BranchProbabilityInfo/integer_heuristics.ll
  llvm/test/Analysis/BranchProbabilityInfo/loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85781.284891.patch
Type: text/x-patch
Size: 6531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/46c2d966/attachment.bin>


More information about the llvm-commits mailing list