54 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass hexagon-rdf-opt -verify-machineinstrs %s -o - | FileCheck %s2 3# Check that the L2_loadrd_io load from stack to $d64# register, in bb.0, is not considered as dead code by RDF5# $d6 is used in A2_minp instruction in bb.16 7#CHECK-LABEL: bb.08#CHECK: renamable $d6 = L2_loadrd_io %stack.{{[0-9]+}}, 09 10--- |11 12 define dso_local i32 @fred(ptr %a) local_unnamed_addr {13 ret i32 014 }15 16...17---18name: fred19tracksRegLiveness: true20stack: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: '' }24 25body: |26 bb.0:27 successors: %bb.1, %bb.228 liveins: $d3:0x0000000000000003, $r5, $r829 30 renamable $p0 = C2_cmpgtui renamable $r8, 131 renamable $r8 = A2_addi killed renamable $r8, -132 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 $usr35 J2_jumpf killed renamable $p0, %bb.2, implicit-def $pc36 J2_jump %bb.1, implicit-def $pc37 38 bb.1:39 successors: %bb.2, %bb.140 liveins: $d3:0x0000000000000003, $d6:0x0000000000000003, $r541 42 renamable $d3 = A2_minp killed renamable $d3, renamable $d643 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 $lc045 J2_jump %bb.2, implicit-def $pc46 47 bb.2:48 liveins: $d3:0x0000000000000003, $d6:0x000000000000000349 50 renamable $r0 = A2_tfr renamable $r651 J2_jumpr $r31, implicit-def $pc, implicit $r052...53 54