Skip to content

Commit

Permalink
[Profile] turn off verbose warnings by default
Browse files Browse the repository at this point in the history
no prof data for func warning is turned off by default
due to its high verbosity and minimal usefulness.

Differential Revision: http://reviews.llvm.org/D23295

llvm-svn: 278127
  • Loading branch information
david-xl committed Aug 9, 2016
1 parent b06ff45 commit 9035cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Expand Up @@ -124,7 +124,7 @@ static cl::opt<bool> DoComdatRenaming(

// 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
Expand Down
4 changes: 2 additions & 2 deletions llvm/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

Expand Down

0 comments on commit 9035cfc

Please sign in to comment.