[PATCH] D53887: [HotColdSplitting] [WIP] Outline more than once per function
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 09:36:17 PST 2018
hiraditya added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/HotColdSplitting.cpp:511
+ LLVM_DEBUG(dbgs() << "Entire function is cold\n");
+ return markEntireFunctionCold(F);
+ }
----------------
junbuml wrote:
> I don't think it's good idea to add MinSize in this case. It is possible that a hot function or main() itself can be successfully ended up with exit(0).
The static analysis here is pretty conservative, unless the runtime-profile information is broken, it seems unlikely that this pass will mark a hot function as cold.
https://reviews.llvm.org/D53887
More information about the llvm-commits
mailing list