Revert rGe6ccb57bb3f6b761f2310e97fd6ca99eff42f73e "[SLP] Add cost model for `llvm...
[llvm-project.git] / llvm / test / CodeGen / Hexagon / ifcvt-diamond-ret.mir
blob797efc384ba7f2e1986036691a38bc3c6685fd73
1 # RUN: llc -march=hexagon -run-pass if-converter %s -o - | FileCheck %s
3 # Make sure this gets if-converted and it doesn't crash.
4 # CHECK-LABEL: bb.0
5 # CHECK: PS_jmpret $r31
6 # CHECK-NOT: bb.{{[1-9]+}}:
8 ---
9 name: fred
10 tracksRegLiveness: true
11 body: |
12   bb.0:
13     successors: %bb.1, %bb.2
14     liveins: $r0
15     renamable $p0 = C2_cmpeqi killed renamable $r0, 0
16     J2_jumpf killed renamable $p0, %bb.2, implicit-def dead $pc
18   bb.1:
19     S4_storeiri_io undef renamable $r0, 0, 32768 :: (store (s32) into `i32* undef`)
20     PS_jmpret $r31, implicit-def dead $pc
22   bb.2:
23     S4_storeiri_io undef renamable $r0, 0, 32768 :: (store (s32) into `i32* undef`)
24     PS_jmpret $r31, implicit-def dead $pc
25 ...