[PGO] Fix bolt failures from r367628
authorRong Xu <xur@google.com>
Fri, 2 Aug 2019 07:21:50 +0000 (07:21 +0000)
committerRong Xu <xur@google.com>
Fri, 2 Aug 2019 07:21:50 +0000 (07:21 +0000)
Relaxed the check in a test because the windows bolt generates different
profile variables.

llvm-svn: 367657

clang/test/Profile/gcc-flag-compatibility.c

index 58ecfc3..a378af9 100644 (file)
@@ -9,8 +9,8 @@
 
 // RUN: %clang %s -c -S -o - -emit-llvm -fprofile-generate -fno-experimental-new-pass-manager | FileCheck -check-prefix=PROFILE-GEN %s
 // RUN: %clang %s -c -S -o - -emit-llvm -fprofile-generate -fexperimental-new-pass-manager | FileCheck -check-prefix=PROFILE-GEN %s
-// PROFILE-GEN: @__profc_main = private global [2 x i64] zeroinitializer, section "__llvm_prf_cnts", align 8
-// PROFILE-GEN: @__profd_main = private global
+// PROFILE-GEN: @__profc_main = {{(private|internal)}} global [2 x i64] zeroinitializer, section
+// PROFILE-GEN: @__profd_main =
 
 // Check that -fprofile-generate=/path/to generates /path/to/default.profraw
 // RUN: %clang %s -c -S -o - -emit-llvm -fprofile-generate=/path/to -fno-experimental-new-pass-manager | FileCheck -check-prefixes=PROFILE-GEN,PROFILE-GEN-EQ %s