[PATCH] D18624: [PGO] PGOFuncName meta data if PGOFuncName is different from function's raw name.
David Li via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 15 10:30:07 PDT 2016
davidxl added inline comments.
================
Comment at: lib/CodeGen/CodeGenPGO.cpp:791
@@ +790,3 @@
+ // Create PGOFuncName meta data.
+ llvm::Function *F = ValueSite->getFunction();
+ if (!llvm::getPGOFuncNameMetadata(*F))
----------------
This may not be the best place do set the data. Better to call it in setFuncName
http://reviews.llvm.org/D18624
More information about the cfe-commits
mailing list