[TableGen] Split DAGISelMatcherOpt FactorNodes into 2 functions. NFC (#125330)
[llvm-project.git] / llvm / test / CodeGen / Hexagon / rdf-dce-double-cover.mir
blob303468489ae19502340e1127b87e40f8ddd96b1c
1 # RUN: llc -mtriple=hexagon -run-pass hexagon-rdf-opt -verify-machineinstrs %s -o - | FileCheck %s
3 # Check that the L2_loadrd_io load from stack to $d6
4 # register, in bb.0, is not considered as dead code by RDF
5 # $d6 is used in A2_minp instruction in bb.1
7 #CHECK-LABEL: bb.0
8 #CHECK: renamable $d6 = L2_loadrd_io %stack.{{[0-9]+}}, 0
10 --- |
12  define dso_local i32 @fred(ptr %a) local_unnamed_addr {
13    ret i32 0
14  }
16 ...
17 ---
18 name: fred
19 tracksRegLiveness: true
20 stack:
21   - { id: 0, name: '', type: spill-slot, offset: 0, size: 8, alignment: 8,
22       stack-id: default, callee-saved-register: '', callee-saved-restored: true,
23       debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
25 body: |
26   bb.0:
27     successors: %bb.1, %bb.2
28     liveins: $d3:0x0000000000000003, $r5, $r8
30     renamable $p0 = C2_cmpgtui renamable $r8, 1
31     renamable $r8 = A2_addi killed renamable $r8, -1
32     renamable $d6 = L2_loadrd_io %stack.0, 0  :: (load (s64) from %stack.0)
33     renamable $r12, renamable $r5 = L2_loadri_pi killed renamable $r5, 4 :: (load (s32) from %ir.a)
34     J2_loop0r %bb.1, killed renamable $r8, implicit-def $lc0, implicit-def $sa0, implicit-def $usr
35     J2_jumpf killed renamable $p0, %bb.2, implicit-def $pc
36     J2_jump %bb.1, implicit-def $pc
38   bb.1:
39     successors: %bb.2, %bb.1
40     liveins: $d3:0x0000000000000003, $d6:0x0000000000000003, $r5
42     renamable $d3 = A2_minp killed renamable $d3, renamable $d6
43     renamable $r12, renamable $r5 = L2_loadri_pi killed renamable $r5, 4 :: (load (s32) from %ir.a + 4)
44     ENDLOOP0 %bb.1, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0
45     J2_jump %bb.2, implicit-def $pc
47   bb.2:
48     liveins: $d3:0x0000000000000003, $d6:0x0000000000000003
50     renamable $r0 = A2_tfr renamable $r6
51     J2_jumpr $r31, implicit-def $pc, implicit $r0
52 ...