[PATCH] D37835: Add optional profile counts to block frequency dump.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 16:34:26 PDT 2017


davidxl added inline comments.


================
Comment at: include/llvm/Analysis/BlockFrequencyInfoImpl.h:1286
+        BlockFrequencyInfoImplBase::getBlockProfileCount(
+            *F->getFunction(), getNode(&BB)))
+      OS << ", count = " << ProfileCount.getValue();
----------------
can you just pass *F instead of *F->getFunction() ?


https://reviews.llvm.org/D37835





More information about the llvm-commits mailing list