[PATCH] D24989: Use profile info to set function section prefix to group hot/cold functions.
Easwaran Raman via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 10:54:07 PDT 2016
eraman accepted this revision.
eraman added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/IR/Function.cpp:1285
+Optional<StringRef> Function::getSectionPrefix() const {
+ if (MDNode * MD = getMetadata(LLVMContext::MD_section_prefix)) {
+ assert(dyn_cast<MDString>(MD->getOperand(0))
----------------
Weird formatting here - space between * and MD.
https://reviews.llvm.org/D24989
More information about the llvm-commits
mailing list