[PATCH] D30633: [BPI] Reduce the probability of unreachable edge to minimal value greater than 0

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 22:07:48 PDT 2017


skatkov updated this revision to Diff 99101.
skatkov retitled this revision from "[BPI] Unreachable branch has 0 probability" to "[BPI] Reduce the probability of unreachable edge to minimal value greater than 0".
skatkov edited the summary of this revision.
skatkov added a comment.

Please take a look, any comments are appreciated.

Please also note that I still think that zero probability for edge coming to unreachable edge still makes sense to me because unreachable edge is something we do not expect or do not want to point our attention to. If there are some pros to avoid zero probability, please let me know for my knowledge.


https://reviews.llvm.org/D30633

Files:
  lib/Analysis/BranchProbabilityInfo.cpp
  test/Analysis/BranchProbabilityInfo/basic.ll
  test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll
  test/Analysis/BranchProbabilityInfo/noreturn.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30633.99101.patch
Type: text/x-patch
Size: 11765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170516/0c987e5a/attachment-0001.bin>


More information about the llvm-commits mailing list