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

Repository
rL LLVM

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 ↗(On Diff #72281)

invoket --> invoke

183 ↗(On Diff #72281)

Add a comment here : cold call heuristic

187 ↗(On Diff #72281)

typo -- InvokeCall

205 ↗(On Diff #72281)

invoket --> invoke

209 ↗(On Diff #72281)

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.