This is an archive of the discontinued LLVM Phabricator instance.

Enhance calcColdCallHeuristics for InvokeInst
ClosedPublic

Authored by junbuml on Sep 23 2016, 7:59 AM.

Details

Summary

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.

Diff Detail

Event Timeline

junbuml updated this revision to Diff 72281.Sep 23 2016, 7:59 AM
junbuml retitled this revision from to Enhance calcColdCallHeuristics for InvokeInst.
junbuml updated this object.
junbuml added reviewers: davidxl, mcrosier, hfinkel.
junbuml added a subscriber: llvm-commits.
davidxl added inline comments.Sep 23 2016, 9:24 AM
test/Analysis/BranchProbabilityInfo/basic.ll
180

invoket --> invoke

183

Add a comment here : cold call heuristic

187

typo -- InvokeCall

205

invoket --> invoke

209

Add a comment that cold call heuristic does not kick in when the cold callsite is in EH path

junbuml updated this revision to Diff 72307.Sep 23 2016, 10:22 AM
junbuml marked 5 inline comments as done.

Addressed David's comments.

davidxl accepted this revision.Sep 23 2016, 10:25 AM
davidxl edited edge metadata.

lgtm

This revision is now accepted and ready to land.Sep 23 2016, 10:25 AM
This revision was automatically updated to reflect the committed changes.