xref: /llvm-project/llvm/test/CodeGen/X86/xray-empty-firstmbb.mir (revision e6cdef187ed37468c14c53723c58cbde3e1341db)
1# RUN: llc -run-pass=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
2#
3# Make sure we can handle empty first basic blocks.
4
5--- |
6
7  define i32 @foo() noinline uwtable "xray-instruction-threshold"="0" {
8  entry:
9    unreachable
10  }
11
12...
13
14---
15name: foo
16tracksRegLiveness: true
17liveins:
18  - { reg: '$edi'}
19body:            |
20  bb.0.entry:
21    liveins: $edi
22    ; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
23...
24