[PATCH] D23295: [Profile]: make 'no profile data' warning off by default

David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 08:43:24 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL278127: [Profile] turn off verbose warnings by default (authored by davidxl).

Changed prior to commit:
  https://reviews.llvm.org/D23295?vs=67284&id=67355#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23295

Files:
  llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  llvm/trunk/test/Transforms/PGOProfile/diag_no_funcprofdata.ll

Index: llvm/trunk/test/Transforms/PGOProfile/diag_no_funcprofdata.ll
===================================================================
--- llvm/trunk/test/Transforms/PGOProfile/diag_no_funcprofdata.ll
+++ llvm/trunk/test/Transforms/PGOProfile/diag_no_funcprofdata.ll
@@ -1,6 +1,6 @@
 ; RUN: llvm-profdata merge %S/Inputs/diag.proftext -o %t.profdata
-; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s
-; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s
+; RUN: opt < %s -pgo-instr-use -no-pgo-warn-missing=false -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s
+; RUN: opt < %s -passes=pgo-instr-use -no-pgo-warn-missing=false -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s
 
 ; CHECK: No profile data available for function bar
 
Index: llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -124,7 +124,7 @@
 
 // Command line option to enable/disable the warning about missing profile
 // information.
-static cl::opt<bool> NoPGOWarnMissing("no-pgo-warn-missing", cl::init(false),
+static cl::opt<bool> NoPGOWarnMissing("no-pgo-warn-missing", cl::init(true),
                                       cl::Hidden);
 
 // Command line option to enable/disable the warning about a hash mismatch in


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23295.67355.patch
Type: text/x-patch
Size: 1520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160809/2b3808c3/attachment.bin>


More information about the llvm-commits mailing list