]> granicus.if.org Git - clang/commitdiff
Revert r254647.
authorEaswaran Raman <eraman@google.com>
Sat, 12 Dec 2015 01:11:09 +0000 (01:11 +0000)
committerEaswaran Raman <eraman@google.com>
Sat, 12 Dec 2015 01:11:09 +0000 (01:11 +0000)
Reason: The testcase fails in many architectures.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255416 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp
test/CodeGen/pgo-max-function-count.c [deleted file]

index 8d7254904a9d2a17f17792a3dd13442e3a1abf48..29c5f3eed5ace2f653ec9d168738ae08f74f9db5 100644 (file)
@@ -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();
diff --git a/test/CodeGen/pgo-max-function-count.c b/test/CodeGen/pgo-max-function-count.c
deleted file mode 100644 (file)
index b60a467..0000000
+++ /dev/null
@@ -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}