Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 2f35f8a

Browse files
committed
Revert "AMDGPU: Re-do update for branch-relaxation test"
This commit also relied on r296812, which I just reverted. We should probably apply it again, after the r296812 has been discussed and been reapplied in some variant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296820 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ce9b88e commit 2f35f8a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/CodeGen/AMDGPU/branch-relaxation.ll

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -430,16 +430,17 @@ endif:
430430
; GCN-NEXT: s_and_saveexec_b64 [[MASK:s\[[0-9]+:[0-9]+\]]], vcc
431431
; GCN-NEXT: s_xor_b64 [[MASK]], exec, [[MASK]]
432432
; GCN-NEXT: ; mask branch [[RET:BB[0-9]+_[0-9]+]]
433-
; GCN-NEXT: s_cbranch_execnz [[LOOP_BODY:BB[0-9]+_[0-9]+]]
433+
; GCN-NEXT: s_cbranch_execz [[BRANCH_SKIP:BB[0-9]+_[0-9]+]]
434+
; GCN-NEXT: s_branch [[LOOP_BODY:BB[0-9]+_[0-9]+]]
434435

435-
; GCN-NEXT: [[BRANCH_SKIP:BB[0-9]+_[0-9]+]]: ; %entry
436+
; GCN-NEXT: [[BRANCH_SKIP]]: ; %entry
436437
; GCN-NEXT: s_getpc_b64 vcc
437438
; GCN-NEXT: s_add_u32 vcc_lo, vcc_lo, [[RET]]-([[BRANCH_SKIP]]+4)
438439
; GCN-NEXT: s_addc_u32 vcc_hi, vcc_hi, 0
439440
; GCN-NEXT: s_setpc_b64 vcc
440441

441442
; GCN-NEXT: [[LOOP_BODY]]: ; %loop_body
442-
443+
; GCN: s_mov_b64 vcc, -1{{$}}
443444
; GCN: ;;#ASMSTART
444445
; GCN: v_nop_e64
445446
; GCN: v_nop_e64
@@ -448,6 +449,7 @@ endif:
448449
; GCN: v_nop_e64
449450
; GCN: v_nop_e64
450451
; GCN: ;;#ASMEND
452+
; GCN-NEXT: s_cbranch_vccz [[RET]]
451453

452454
; GCN-NEXT: [[LONGBB:BB[0-9]+_[0-9]+]]: ; %loop_body
453455
; GCN-NEXT: ; in Loop: Header=[[LOOP_BODY]] Depth=1
@@ -456,7 +458,7 @@ endif:
456458
; GCN-NEXT: s_subb_u32 vcc_hi, vcc_hi, 0
457459
; GCN-NEXT: s_setpc_b64 vcc
458460

459-
; GCN-NEXT: BB{{[0-9]+_[0-9]+}}: ; %ret
461+
; GCN-NEXT: [[RET]]: ; %Flow
460462
; GCN-NEXT: s_or_b64 exec, exec, [[MASK]]
461463
; GCN: buffer_store_dword
462464
; GCN-NEXT: s_endpgm
@@ -468,11 +470,6 @@ entry:
468470

469471
loop:
470472
%phi = phi float [ 0.000000e+00, %loop_body ], [ 1.000000e+00, %entry ]
471-
call void @llvm.amdgcn.s.sleep(i32 0)
472-
call void @llvm.amdgcn.s.sleep(i32 0)
473-
call void @llvm.amdgcn.s.sleep(i32 0)
474-
call void @llvm.amdgcn.s.sleep(i32 0)
475-
call void @llvm.amdgcn.s.sleep(i32 0)
476473
call void asm sideeffect
477474
"v_nop_e64
478475
v_nop_e64", ""() #0

0 commit comments

Comments
 (0)