1; RUN: llvm-profdata merge %S/Inputs/unreachable_bb.proftext -o %t.profdata
2; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE
3; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE
4
5target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
6target triple = "x86_64-unknown-linux-gnu"
7
8define void @foo() {
9entry:
10  call void @bar()
11  unreachable
12return:
13  ret void
14}
15
16declare void @bar()
17
18;USE: !0 = !{i32 1, !"ProfileSummary", !1}
19;USE: !1 = !{!2, !3, !4, !5, !6, !7, !8, !9, !10, !11}
20;USE: !2 = !{!"ProfileFormat", !"InstrProf"}
21;USE: !3 = !{!"TotalCount", i64 0}
22
23
24