]> granicus.if.org Git - llvm/commit
ProfileSummaryInfo improvements.
authorEaswaran Raman <eraman@google.com>
Fri, 13 Jan 2017 01:34:00 +0000 (01:34 +0000)
committerEaswaran Raman <eraman@google.com>
Fri, 13 Jan 2017 01:34:00 +0000 (01:34 +0000)
commita2090aaaf9bc9288f91ebafad756879883625153
tree725bc128f36f16320990799b812015f73682a4cf
parent72895656c7582d3d5007dac363d877f0bd1a0c67
ProfileSummaryInfo improvements.

* 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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291878 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ProfileSummaryInfo.h
lib/Analysis/ProfileSummaryInfo.cpp
unittests/Analysis/CMakeLists.txt
unittests/Analysis/ProfileSummaryInfoTest.cpp [new file with mode: 0644]