Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / X86 / xray-multiplerets-in-blocks.mir
blob60a33b95f1412cf548c4de9c2bafa5a8e8887073
1 # RUN: llc -run-pass=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
3 # Make sure we can handle multiple ret instructions in a single basic block for
4 # XRay.
6 --- |
8   define i32 @foo() noinline uwtable "function-instrument"="xray-always" {
9     ret i32 0
10     ret i32 1
11   }
13 ...
15 ---
16 name: foo
17 tracksRegLiveness: true
18 liveins:
19   - { reg: '$edi'}
20 body:            |
21   bb.0:
22     liveins: $edi
23     ; CHECK: PATCHABLE_FUNCTION_ENTER
24     RET64
25     ; CHECK-NEXT: PATCHABLE_RET
26     RET64
27     ; CHECK-NEXT: PATCHABLE_RET
28 ...