; RUN: llvm-profdata merge %S/Inputs/diag.proftext -o %T/diag.profdata
; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%T/diag.profdata -S 2>&1 | FileCheck %s

; CHECK: No profile data available for function bar

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define i32 @bar() {
entry:
  ret i32 0 
}

; RUN: llvm-profdata merge %S/Inputs/diag.proftext -o %T/diag2.profdata
; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%T/diag2.profdata -S 2>&1 | FileCheck %s

; CHECK: No profile data available for function bar

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define i32 @bar() {
entry:
  ret i32 0 
}

Rename the profdata filename to avoid the conflict b/w tests.
[PGO] Rename the profdata filename to avoid the conflict b/w tests.

Two tests diag_mismatch.ll and diag_no_funcprofdata.ll generates the same
profdata filename which can conflict in current test runs. This patch
renames them to have different names. 


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@255158 91177308-0d34-0410-b5e6-96231b3b80d8
