From: Rong Xu Date: Fri, 2 Aug 2019 07:21:50 +0000 (+0000) Subject: [PGO] Fix bolt failures from r367628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c68e672502353c3808dac7e1aa5aa96beabc2362;p=clang [PGO] Fix bolt failures from r367628 Relaxed the check in a test because the windows bolt generates different profile variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367657 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Profile/gcc-flag-compatibility.c b/test/Profile/gcc-flag-compatibility.c index 58ecfc3919..a378af9d34 100644 --- a/test/Profile/gcc-flag-compatibility.c +++ b/test/Profile/gcc-flag-compatibility.c @@ -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