[llvm] r363004 - [PGO] Fix the buildbot failure in r362995

Rong Xu via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 16:20:04 PDT 2019


Author: xur
Date: Mon Jun 10 16:20:04 2019
New Revision: 363004

URL: http://llvm.org/viewvc/llvm-project?rev=363004&view=rev
Log:
[PGO] Fix the buildbot failure in r362995

Fixed one unused variable warning.

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp?rev=363004&r1=363003&r2=363004&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp Mon Jun 10 16:20:04 2019
@@ -798,14 +798,11 @@ BasicBlock *FuncPGOInstrumentation<Edge,
   if (DestBB == nullptr)
     return SrcBB;
 
-  auto canInstrument = [this](BasicBlock *BB) -> BasicBlock * {
+  auto canInstrument = [](BasicBlock *BB) -> BasicBlock * {
     // There are basic blocks (such as catchswitch) cannot be instrumented.
     // If the returned first insertion point is the end of BB, skip this BB.
-    if (BB->getFirstInsertionPt() == BB->end()) {
-      LLVM_DEBUG(dbgs() << "Cannot instrument BB index=" << getBBInfo(BB).Index
-                        << "\n");
+    if (BB->getFirstInsertionPt() == BB->end())
       return nullptr;
-    }
     return BB;
   };
 




More information about the llvm-commits mailing list