Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / X86 / basic-block-sections-labels-empty-function.ll
blob7b7bbb95fb4e2136d12f18ffba34644501f61da3
1 ;; Verify that the BB address map is not emitted for empty functions.
2 ; RUN: llc < %s -mtriple=x86_64 -basic-block-sections=labels | FileCheck %s
4 define void @empty_func() {
5 entry:
6   unreachable
8 ; CHECK:                {{^ *}}.text{{$}}
9 ; CHECK:        empty_func:
10 ; CHECK:        .Lfunc_begin0:
11 ; CHECK-NOT:    .section        .llvm_bb_addr_map
13 define void @func() {
14 entry:
15   ret void
18 ; CHECK:        func:
19 ; CHECK:        .Lfunc_begin1:
20 ; CHECK:                .section        .llvm_bb_addr_map,"o",@llvm_bb_addr_map,.text{{$}}
21 ; CHECK-NEXT:           .byte 2                 # version
22 ; CHECK-NEXT:           .byte 0                 # feature
23 ; CHECK-NEXT:           .quad   .Lfunc_begin1   # function address