[PATCH] D62700: [PGO] Handle cases of non-instrument BBs

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 14:02:25 PDT 2019


davidxl added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:783
 
+  auto canInstrument = [this](BasicBlock *BB) -> BasicBlock * {
+    if (BB->getFirstInsertionPt() == BB->end()) {
----------------
Add a comment here explaining the predicate.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62700/new/

https://reviews.llvm.org/D62700





More information about the llvm-commits mailing list