This is an archive of the discontinued LLVM Phabricator instance.

Handle early inline for hot callsites that reside in the same basic block.
ClosedPublic

Authored by danielcdh on Sep 19 2016, 10:29 AM.

Details

Summary

Callsites in the same basic block should share the same hotness. This patch checks for the hottest callsite in the same basic block, and use the hotness for all callsites in that basic block for early inline decisions. It also fixes the test to add "-S" so theat the "CHECK-NOT" is actually checking the content.

Diff Detail

Event Timeline

danielcdh updated this revision to Diff 71844.Sep 19 2016, 10:29 AM
danielcdh retitled this revision from to Handle early inline for hot callsites that reside in the same basic block..
danielcdh updated this object.
danielcdh added a reviewer: dnovillo.
danielcdh added a subscriber: llvm-commits.
dnovillo accepted this revision.Sep 19 2016, 11:28 AM
dnovillo edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Sep 19 2016, 11:28 AM
danielcdh closed this revision.Sep 19 2016, 11:46 AM