Add hasProfileSummary and has{Sample|Instrumentation}Profile methods
authorEaswaran Raman <eraman@google.com>
Tue, 16 May 2017 20:14:39 +0000 (20:14 +0000)
committerEaswaran Raman <eraman@google.com>
Tue, 16 May 2017 20:14:39 +0000 (20:14 +0000)
commitdadc0f11ad99841f6b205bf798497ee32adf7ec6
tree3a8f312d50f9b57f72c90332236a70aa3e491a8a
parent6b6ce6350fbe16a260d58e6fcaf6dffc3c053f8a
Add hasProfileSummary and has{Sample|Instrumentation}Profile methods

ProfileSummaryInfo already checks whether the module has sample profile
in determining profile counts. This will also be useful in inliner to
clean up threshold updates.

llvm-svn: 303204
llvm/include/llvm/Analysis/ProfileSummaryInfo.h
llvm/lib/Analysis/ProfileSummaryInfo.cpp
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp