1 ; REQUIRES: x86_64-linux
3 ; Check that, if none of the roots in the profile are defined in the module, the
4 ; profile is treated as empty (i.e. "none provided")
7 ; RUN: split-file %s %t
8 ; RUN: llvm-ctxprof-util fromJSON --input=%t/profile.json --output=%t/profile.ctxprofdata
9 ; RUN: opt -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>' -ctx-profile-printer-level=everything \
10 ; RUN: %t/example.ll -S 2>&1 | FileCheck %s
12 ; CHECK: No contextual profile was provided
14 ; This is the reference profile, laid out in the format the json formatter will
15 ; output it from opt. Note that the root GUIDs - 12341 and 34234 - are different from
16 ; the GUID present in the module, which is otherwise present in the profile, but not
53 define void @an_entrypoint(i32 %a) !guid !0 {
54 %t = icmp eq i32 %a, 0
55 br i1 %t, label %yes, label %no
64 attributes #0 = { noinline }