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