[llvm] e7b89f3 - [AMDGPU] Regenerate test checks in collapse-endcf.mir. NFC
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 5 09:20:06 PST 2022
Author: Christudasan Devadasan
Date: 2022-01-05T12:06:11-05:00
New Revision: e7b89f322204f84ebb93604d4f01a764fae82e22
URL: https://github.com/llvm/llvm-project/commit/e7b89f322204f84ebb93604d4f01a764fae82e22
DIFF: https://github.com/llvm/llvm-project/commit/e7b89f322204f84ebb93604d4f01a764fae82e22.diff
LOG: [AMDGPU] Regenerate test checks in collapse-endcf.mir. NFC
Added:
Modified:
llvm/test/CodeGen/AMDGPU/collapse-endcf.mir
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AMDGPU/collapse-endcf.mir b/llvm/test/CodeGen/AMDGPU/collapse-endcf.mir
index 1ae0ffc1d60aa..fc1ce0064afb2 100644
--- a/llvm/test/CodeGen/AMDGPU/collapse-endcf.mir
+++ b/llvm/test/CodeGen/AMDGPU/collapse-endcf.mir
@@ -10,23 +10,29 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: simple_nested_if_dbg_value
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: bb.4:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: DBG_VALUE
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: DBG_VALUE
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -59,24 +65,32 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: simple_nested_if_empty_block_between
; GCN: bb.0:
- ; GCN: successors: %bb.5(0x40000000), %bb.1(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.5, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: bb.4:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: bb.5:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.5(0x40000000), %bb.1(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
%0:sreg_64 = SI_IF undef %1:sreg_64, %bb.4, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
@@ -107,25 +121,33 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: simple_nested_if_empty_block_dbg_between
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.5(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.5, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: bb.4:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: DBG_VALUE
- ; GCN: bb.5:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.5(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: DBG_VALUE
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -158,28 +180,36 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: skip_salu_and_meta_insts_find_first
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: liveins: $vgpr0, $sgpr0_sgpr1
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.3(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.3, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.3(0x80000000)
- ; GCN: bb.3:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
- ; GCN: [[S_BREV_B32_:%[0-9]+]]:sgpr_32 = S_BREV_B32 [[DEF]]
- ; GCN: KILL [[DEF]]
- ; GCN: bb.4:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: liveins: $vgpr0, $sgpr0_sgpr1
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.3(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.3(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.3:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
+ ; GCN-NEXT: [[S_BREV_B32_:%[0-9]+]]:sgpr_32 = S_BREV_B32 [[DEF]]
+ ; GCN-NEXT: KILL [[DEF]]
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
liveins: $vgpr0, $sgpr0_sgpr1
@@ -215,28 +245,36 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: skip_salu_and_meta_insts_after
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.3(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.3, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.3(0x80000000)
- ; GCN: bb.3:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
- ; GCN: [[S_BREV_B32_:%[0-9]+]]:sgpr_32 = S_BREV_B32 [[DEF]]
- ; GCN: KILL [[DEF]]
- ; GCN: [[COPY2:%[0-9]+]]:sgpr_32 = COPY [[S_BREV_B32_]]
- ; GCN: bb.4:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.3(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.3(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.3:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
+ ; GCN-NEXT: [[S_BREV_B32_:%[0-9]+]]:sgpr_32 = S_BREV_B32 [[DEF]]
+ ; GCN-NEXT: KILL [[DEF]]
+ ; GCN-NEXT: [[COPY2:%[0-9]+]]:sgpr_32 = COPY [[S_BREV_B32_]]
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -271,26 +309,34 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: salu_exec_dependency
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.3(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.3, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.3(0x80000000)
- ; GCN: bb.3:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[COPY1]], implicit-def $scc
- ; GCN: [[S_BREV_B64_:%[0-9]+]]:sreg_64 = S_BREV_B64 $exec
- ; GCN: bb.4:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.3(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.3(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.3:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY1]], implicit-def $scc
+ ; GCN-NEXT: [[S_BREV_B64_:%[0-9]+]]:sreg_64 = S_BREV_B64 $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -322,27 +368,35 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: copy_no_explicit_exec_dependency
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.3(0x40000000)
- ; GCN: [[DEF:%[0-9]+]]:vreg_128 = IMPLICIT_DEF
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %4:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.3, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.3(0x80000000)
- ; GCN: bb.3:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[COPY1]], implicit-def $scc
- ; GCN: [[COPY2:%[0-9]+]]:vgpr_32 = COPY [[DEF]].sub2
- ; GCN: bb.4:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.3(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[DEF:%[0-9]+]]:vreg_128 = IMPLICIT_DEF
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %4:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.3(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.3:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY1]], implicit-def $scc
+ ; GCN-NEXT: [[COPY2:%[0-9]+]]:vgpr_32 = COPY [[DEF]].sub2
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -374,25 +428,33 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: simple_nested_if_not_layout_successor
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.5(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.5, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: bb.5:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: S_BRANCH %bb.4
- ; GCN: bb.4:
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.5(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: S_BRANCH %bb.4
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -430,14 +492,17 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: resursive_endcf
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x80000000)
- ; GCN: liveins: $vgpr0
- ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
- ; GCN: [[V_CMP_LT_U32_e64_:%[0-9]+]]:sreg_64 = V_CMP_LT_U32_e64 1, [[COPY]], implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.1(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[V_CMP_LT_U32_e64_]], implicit-def $scc
- ; GCN: S_BRANCH %bb.1
+ ; GCN-NEXT: successors: %bb.1(0x80000000)
+ ; GCN-NEXT: liveins: $vgpr0
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
+ ; GCN-NEXT: [[V_CMP_LT_U32_e64_:%[0-9]+]]:sreg_64 = V_CMP_LT_U32_e64 1, [[COPY]], implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.1(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[V_CMP_LT_U32_e64_]], implicit-def $scc
+ ; GCN-NEXT: S_BRANCH %bb.1
bb.0:
successors: %bb.1
liveins: $vgpr0
@@ -463,35 +528,47 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: simple_outer_if_else
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.2(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: [[S_XOR_B64_:%[0-9]+]]:sreg_64 = S_XOR_B64 [[S_AND_B64_]], [[COPY]], implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.2, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x80000000)
- ; GCN: S_BRANCH %bb.2
- ; GCN: bb.2:
- ; GCN: successors: %bb.3(0x40000000), %bb.6(0x40000000)
- ; GCN: [[S_OR_SAVEEXEC_B64_:%[0-9]+]]:sreg_64 = S_OR_SAVEEXEC_B64 [[S_XOR_B64_]], implicit-def $exec, implicit-def $scc, implicit $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 $exec, [[S_OR_SAVEEXEC_B64_]], implicit-def $scc
- ; GCN: $exec = S_XOR_B64_term $exec, [[S_AND_B64_1]], implicit-def $scc
- ; GCN: S_CBRANCH_EXECZ %bb.6, implicit $exec
- ; GCN: bb.3:
- ; GCN: successors: %bb.3(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_2:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %4:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_2]]
- ; GCN: S_CBRANCH_EXECZ %bb.3, implicit $exec
- ; GCN: bb.4:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: bb.5:
- ; GCN: successors: %bb.6(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[COPY1]], implicit-def $scc
- ; GCN: bb.6:
- ; GCN: $exec = S_OR_B64 $exec, [[S_AND_B64_1]], implicit-def $scc
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: [[S_XOR_B64_:%[0-9]+]]:sreg_64 = S_XOR_B64 [[S_AND_B64_]], [[COPY]], implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.2, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: S_BRANCH %bb.2
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.3(0x40000000), %bb.6(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[S_OR_SAVEEXEC_B64_:%[0-9]+]]:sreg_64 = S_OR_SAVEEXEC_B64 [[S_XOR_B64_]], implicit-def $exec, implicit-def $scc, implicit $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 $exec, [[S_OR_SAVEEXEC_B64_]], implicit-def $scc
+ ; GCN-NEXT: $exec = S_XOR_B64_term $exec, [[S_AND_B64_1]], implicit-def $scc
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.6, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.3:
+ ; GCN-NEXT: successors: %bb.3(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_2:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %4:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_2]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: successors: %bb.6(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY1]], implicit-def $scc
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.6:
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[S_AND_B64_1]], implicit-def $scc
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.2
@@ -532,34 +609,47 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: if_inside_loop
; GCN: bb.0:
- ; GCN: successors: %bb.6(0x80000000)
- ; GCN: S_BRANCH %bb.6
- ; GCN: bb.1:
- ; GCN: successors: %bb.3(0x40000000), %bb.2(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.3, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.6(0x80000000)
- ; GCN: S_BRANCH %bb.6
- ; GCN: bb.3:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: bb.4:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, %2, implicit-def $scc
- ; GCN: bb.5:
- ; GCN: successors: %bb.6(0x80000000)
- ; GCN: bb.6:
- ; GCN: successors: %bb.4(0x40000000), %bb.0(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: [[S_XOR_B64_:%[0-9]+]]:sreg_64 = S_XOR_B64 [[S_AND_B64_1]], [[COPY1]], implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: S_BRANCH %bb.0
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.6(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: S_BRANCH %bb.6
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.3(0x40000000), %bb.2(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.6(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: S_BRANCH %bb.6
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.3:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, %2, implicit-def $scc
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: successors: %bb.6(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.6:
+ ; GCN-NEXT: successors: %bb.4(0x40000000), %bb.0(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: [[S_XOR_B64_:%[0-9]+]]:sreg_64 = S_XOR_B64 [[S_AND_B64_1]], [[COPY1]], implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: S_BRANCH %bb.0
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
S_BRANCH %bb.6
@@ -595,24 +685,32 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: removed_succ_fallthrough_but_layout_successor
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: bb.4:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: bb.5:
- ; GCN: S_ENDPGM 0
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: S_ENDPGM 0
bb.0:
successors: %bb.1, %bb.4
@@ -650,28 +748,38 @@ machineFunctionInfo:
body: |
; GCN-LABEL: name: deleted_succ_fallthrough_not_layout_successor
; GCN: bb.0:
- ; GCN: successors: %bb.1(0x40000000), %bb.4(0x40000000)
- ; GCN: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
- ; GCN: S_CBRANCH_EXECZ %bb.4, implicit $exec
- ; GCN: bb.1:
- ; GCN: successors: %bb.2(0x40000000), %bb.5(0x40000000)
- ; GCN: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
- ; GCN: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
- ; GCN: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
- ; GCN: S_CBRANCH_EXECZ %bb.5, implicit $exec
- ; GCN: bb.2:
- ; GCN: successors: %bb.5(0x80000000)
- ; GCN: S_BRANCH %bb.5
- ; GCN: bb.4:
- ; GCN: S_ENDPGM 0
- ; GCN: bb.5:
- ; GCN: successors: %bb.6(0x80000000)
- ; GCN: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
- ; GCN: bb.6:
- ; GCN: successors: %bb.4(0x80000000)
- ; GCN: S_BRANCH %bb.4
+ ; GCN-NEXT: successors: %bb.1(0x40000000), %bb.4(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY]], undef %1:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.1:
+ ; GCN-NEXT: successors: %bb.2(0x40000000), %bb.5(0x40000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: [[COPY1:%[0-9]+]]:sreg_64 = COPY $exec, implicit-def $exec
+ ; GCN-NEXT: [[S_AND_B64_1:%[0-9]+]]:sreg_64 = S_AND_B64 [[COPY1]], undef %3:sreg_64, implicit-def dead $scc
+ ; GCN-NEXT: $exec = S_MOV_B64_term killed [[S_AND_B64_1]]
+ ; GCN-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.2:
+ ; GCN-NEXT: successors: %bb.5(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: S_BRANCH %bb.5
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.4:
+ ; GCN-NEXT: S_ENDPGM 0
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.5:
+ ; GCN-NEXT: successors: %bb.6(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: $exec = S_OR_B64 $exec, [[COPY]], implicit-def $scc
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: bb.6:
+ ; GCN-NEXT: successors: %bb.4(0x80000000)
+ ; GCN-NEXT: {{ $}}
+ ; GCN-NEXT: S_BRANCH %bb.4
bb.0:
successors: %bb.1, %bb.4
More information about the llvm-commits
mailing list