Revert r254647.
Reason: The testcase fails in many architectures. Differential Revision: http://reviews.llvm.org/D15163 llvm-svn: 255416
This commit is contained in:
parent
1b26b9ec9d
commit
dd4c71ca6e
|
@ -376,9 +376,6 @@ void CodeGenModule::Release() {
|
|||
}
|
||||
if (PGOReader && PGOStats.hasDiagnostics())
|
||||
PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName);
|
||||
// In PGO mode, attach maximum function count to the module.
|
||||
if (PGOReader)
|
||||
getModule().setMaximumFunctionCount(PGOReader->getMaximumFunctionCount());
|
||||
EmitCtorList(GlobalCtors, "llvm.global_ctors");
|
||||
EmitCtorList(GlobalDtors, "llvm.global_dtors");
|
||||
EmitGlobalAnnotations();
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
// RUN: %clang -fprofile-generate -o %t -O2 %s
|
||||
// RUN: env LLVM_PROFILE_FILE=%t.profraw %t
|
||||
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
|
||||
// RUN: %clang -fprofile-use=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
|
||||
// Check
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
// CHECK: !{{[0-9]+}} = !{i32 1, !"MaxFunctionCount", i32 1}
|
Loading…
Reference in New Issue