This is an archive of the discontinued LLVM Phabricator instance.

Do not use branch metadata to check if a basic block is hot.
ClosedPublic

Authored by danielcdh on Mar 9 2017, 5:30 PM.

Details

Summary

We should not use that to check basic block hotness as optimization may mess it up.

Event Timeline

danielcdh created this revision.Mar 9 2017, 5:30 PM
eraman accepted this revision.Mar 9 2017, 5:34 PM

LGTM after removing the changes to the ProfileSummaryInfoTest.cpp.

unittests/Analysis/ProfileSummaryInfoTest.cpp
165

This test is still relevant even after the change. I think you meant to remove it in the other patch - https://reviews.llvm.org/D30799

This revision is now accepted and ready to land.Mar 9 2017, 5:34 PM
danielcdh closed this revision.Mar 9 2017, 5:56 PM