]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/X86/xray-empty-firstmbb.mir
Vendor import of llvm release_40 branch r292009:
[FreeBSD/FreeBSD.git] / test / CodeGen / X86 / xray-empty-firstmbb.mir
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"="1" {
8   entry:
9     unreachable
10   }
11
12 ...
13
14 ---
15 name: foo
16 tracksRegLiveness: true
17 liveins:
18   - { reg: '%edi'}
19 body:            |
20   bb.0.entry:
21     liveins: %edi
22     ; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
23 ...