[PATCH] D34218: [Doc] Document prof metadata in LangRef

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 13:12:27 PDT 2017


davidxl added inline comments.


================
Comment at: docs/LangRef.rst:5210
+
+Branch weight metadata attached to a branch, switch or call instruction
+represents the likeliness of the associated branch being taken.
----------------
Does it attach to the call instruction?

It can be attached to SELECT instruction which should be mentioned.


================
Comment at: docs/LangRef.rst:5220
+Function entry count metadata can be attached to function definitions
+to enable comparing different functions during inter-procedural analysis
+and optimization.
----------------
to record the number of times the function is called.  Used with BFI information, it is also used to derive basic block profile count.


================
Comment at: docs/LangRef.rst:5231
+value profile information. Currently this is indirect calls (where it
+records the hottest callees) and memcpy calls (where it records the
+hottest memcpy byte lengths).
----------------
memcpy -- mempy like calls (including memset, etc)


https://reviews.llvm.org/D34218





More information about the llvm-commits mailing list