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 NoPGOWarnMissing("no-pgo-warn-missing", cl::init(false), +static cl::opt NoPGOWarnMissing("no-pgo-warn-missing", cl::init(true), cl::Hidden); // Command line option to enable/disable the warning about a hash mismatch in 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