aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/xray-empty-firstmbb.mir
blob: cd8b04b96ba2b938b7c88f73ce85a3b5e1fc6929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# RUN: llc -run-pass=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
# RUN: llc -passes=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
#
# Make sure we can handle empty first basic blocks.

--- |

  define i32 @foo() noinline uwtable "xray-instruction-threshold"="0" {
  entry:
    unreachable
  }

...

---
name: foo
tracksRegLiveness: true
liveins:
  - { reg: '$edi'}
body:            |
  bb.0.entry:
    liveins: $edi
    ; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
...