Skip to content

Commit 1a44d22

Browse files
committed
Simplify RUN line. Remove control flow.
Signed-off-by: John Lu <[email protected]>
1 parent 682267d commit 1a44d22

File tree

2 files changed

+7
-55
lines changed

2 files changed

+7
-55
lines changed
Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -mtriple=amdgcn -verify-machineinstrs=1 -start-before=postrapseudos -stop-after=postrapseudos -O0 -o - %s | FileCheck -check-prefix=GCN %s
1+
# RUN: llc -mtriple=amdgcn -verify-machineinstrs --run-pass=postrapseudos -o - %s | FileCheck -check-prefix=GCN %s
22

33
# This testcase shows the necessity of removing the killed flag from the $sgpr source when
44
# creating a V_WRITELANE_B32. The SI_SPILL_S32_TO_VGPR will be converted in postrapseudos from:
@@ -21,37 +21,9 @@ machineFunctionInfo:
2121
- '$vgpr63'
2222
body: |
2323
bb.0:
24-
successors: %bb.1(0x80000000)
2524
liveins: $vgpr0
26-
27-
S_BRANCH %bb.1
28-
29-
bb.1:
30-
successors: %bb.2(0x40000000), %bb.3(0x40000000)
31-
3225
$sgpr0 = SI_RESTORE_S32_FROM_VGPR $vgpr63, 2, implicit-def $sgpr0_sgpr1
3326
$vgpr63 = SI_SPILL_S32_TO_VGPR killed $sgpr0, 6, $vgpr63, implicit-def $sgpr0_sgpr1
3427
$exec = S_MOV_B64_term killed renamable $sgpr0_sgpr1
35-
S_CBRANCH_EXECZ %bb.3, implicit $exec
36-
S_BRANCH %bb.2
37-
38-
bb.2:
39-
successors: %bb.3(0x80000000)
40-
41-
S_BRANCH %bb.3
42-
43-
bb.3:
44-
successors: %bb.4(0x40000000), %bb.1(0x40000000)
45-
46-
$exec = S_ANDN2_B64_term $exec, killed undef renamable $sgpr0_sgpr1, implicit-def dead $scc
47-
S_CBRANCH_EXECNZ %bb.1, implicit $exec
48-
S_BRANCH %bb.4
49-
50-
bb.4:
51-
successors: %bb.5(0x80000000)
52-
53-
$exec = S_OR_B64_term $exec, killed undef renamable $sgpr0_sgpr1, implicit-def dead $scc
54-
55-
bb.5:
5628
S_ENDPGM 0
5729
...
Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs -start-before=prologepilog -stop-after=postrapseudos -o - %s | FileCheck -check-prefix=GCN %s
1+
# RUN: llc -mtriple=amdgcn -verify-machineinstrs --run-pass=postrapseudos -o - %s | FileCheck -check-prefix=GCN %s
22

3-
# This testcase shows the necessity of adding an undef flag to the $sgpr source when
3+
# This test shows the necessity of adding an undef flag to the $sgpr source when
44
# creating a V_WRITELANE_B32.
55
#
6-
# The prologepilog pass will create a:
6+
# The prologepilog creates:
77
#
88
# $exec = S_MOV_B64 killed $sgpr4_sgpr5
99
#
@@ -29,30 +29,10 @@ machineFunctionInfo:
2929
- '$vgpr62'
3030
body: |
3131
bb.0:
32-
successors: %bb.3(0x40000000), %bb.1(0x40000000)
33-
32+
$sgpr4_sgpr5 = S_XOR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec
33+
$exec = S_MOV_B64 killed $sgpr4_sgpr5
3434
renamable $sgpr4 = IMPLICIT_DEF
3535
$vgpr62 = SI_SPILL_S32_TO_VGPR $sgpr5, 1, killed $vgpr62, implicit $sgpr4_sgpr5
36-
S_CBRANCH_EXECZ %bb.1, implicit $exec
37-
S_BRANCH %bb.3
38-
39-
bb.1:
40-
successors: %bb.2(0x40000000), %bb.4(0x40000000)
41-
42-
S_CBRANCH_EXECZ %bb.4, implicit $exec
43-
S_BRANCH %bb.2
44-
45-
bb.2:
46-
successors: %bb.4(0x80000000)
47-
48-
S_BRANCH %bb.4
49-
50-
bb.3:
51-
successors: %bb.1(0x80000000)
52-
53-
S_BRANCH %bb.1
54-
55-
bb.4:
56-
5736
SI_RETURN
5837
...
38+

0 commit comments

Comments
 (0)