[PATCH] D41461: Add hasProfileData() to check if a function has profile data. NFC.
Easwaran Raman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 12:43:39 PST 2017
eraman created this revision.
eraman added reviewers: davidxl, silvas.
This replaces calls to getEntryCount().hasValue() with hasProfileData
that does the same thing. This refactoring is useful to do before adding
synthetic function entry counts but also a useful cleanup IMO even
otherwise. I have used hasProfileData instead of hasRealProfileData as
David had earlier suggested since I think profile implies "real" and I
use the phrase "synthetic entry count" and not "synthetic profile count"
but I am fine calling it hasRealProfileData if you prefer.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7968 bytes
Desc: not available
More information about the llvm-commits