[PATCH] D30282: Add call branch annotation for ICP promoted direct call in SamplePGO mode.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 13:42:24 PST 2017


davidxl added inline comments.


================
Comment at: lib/Transforms/Instrumentation/IndirectCallPromotion.cpp:526
+// If \p AttachProfToDirectCall is true, a prof metadata is attached to the
+// new direct call to contain \p Count.
 // Returns the promoted direct call instruction.
----------------
document this is needed for sample PGO callsite hotness.


https://reviews.llvm.org/D30282





More information about the llvm-commits mailing list