[PATCH] D24868: Enhance calcColdCallHeuristics for InvokeInst

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 07:59:38 PDT 2016


junbuml created this revision.
junbuml added reviewers: davidxl, mcrosier, hfinkel.
junbuml added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

When identifying cold blocks, consider only the edge to the normal destination if the terminator is InvokeInst and let calcInvokeHeuristics() decide edge weights for the InvokeInst.

https://reviews.llvm.org/D24868

Files:
  lib/Analysis/BranchProbabilityInfo.cpp
  test/Analysis/BranchProbabilityInfo/basic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24868.72281.patch
Type: text/x-patch
Size: 3751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160923/943fbd98/attachment.bin>


More information about the llvm-commits mailing list