summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Compute summary before calling extractProfTotalWeightEaswaran Raman2017-01-141-23/+54
| | | | | | | | | | extractProfTotalWeight checks if the profile type is sample profile, but before that we have to ensure that summary is available. Also expanded the unittest to test the case where there is no summar Differential Revision: https://reviews.llvm.org/D28708 llvm-svn: 291982
* ProfileSummaryInfo improvements.Easwaran Raman2017-01-131-0/+173
* Add is{Hot|Cold}CallSite methods * Fix a bug in isHotBB where it was looking for MD_prof on a return instruction * Use MD_prof data only if sample profiling was used to collect profiles. * Add an unit test to ProfileSummaryInfo Differential Revision: https://reviews.llvm.org/D28584 llvm-svn: 291878
OpenPOWER on IntegriCloud