machine-cp-clobbers.mir
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# RUN: llc -march=hexagon -o - %s -run-pass=machine-cp | FileCheck %s
---
name: dont_propagate_past_lower_subreg_kill
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: dont_propagate_past_lower_subreg_kill
; CHECK: A2_nop implicit-def $d0
; CHECK: A2_nop implicit-def $r2
; CHECK: A2_nop implicit killed $r2
; CHECK: $d1 = COPY killed $d0
; CHECK: $d2 = COPY $d1
; CHECK: A2_nop implicit $d2
A2_nop implicit-def $d0
$d1 = COPY killed $d0
$d0 = COPY killed $d1
A2_nop implicit-def $r2
A2_nop implicit killed $r2
$d1 = COPY killed $d0
$d2 = COPY $d1
A2_nop implicit $d2
...
---
name: dont_propagate_past_upper_subreg_kill
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: dont_propagate_past_upper_subreg_kill
; CHECK: A2_nop implicit-def $d0
; CHECK: A2_nop implicit-def $r3
; CHECK: A2_nop implicit killed $r3
; CHECK: $d1 = COPY killed $d0
; CHECK: $d2 = COPY $d1
; CHECK: A2_nop implicit $d2
A2_nop implicit-def $d0
$d1 = COPY killed $d0
$d0 = COPY killed $d1
A2_nop implicit-def $r3
A2_nop implicit killed $r3
$d1 = COPY killed $d0
$d2 = COPY $d1
A2_nop implicit $d2
...