[NFC] Simplify test

Remove extra preheader block as there is no value in keeping it.
This commit is contained in:
Piotr Sobczak 2020-03-19 13:33:51 +01:00
parent fb11455038
commit 4d8a720277
1 changed files with 9 additions and 9 deletions

View File

@ -729,15 +729,18 @@ bb5: ; preds = %bb3
; IR: [[FLOW]]:
; IR-NEXT: phi
; IR-NEXT: br i1 [[CND2:%.*]], label %[[PREHEADER:.*]], label %[[FLOW2:.*]]
; IR-NEXT: br i1 [[CND2:%.*]], label %[[LOOP:.*]], label %UnifiedReturnBlock
; IR: [[FLOW2]]:
; IR-NEXT: br label %UnifiedReturnBlock
; IR: [[LOOP]]:
; IR-NEXT: br i1 false, label %[[FLOW1:.*]], label %[[LOOP]]
; IR: [[EXP]]:
; IR-NEXT: call void @llvm.amdgcn.exp.compr.v2f16(i32 immarg 0, i32 immarg 15, <2 x half> <half 0xH3C00, half 0xH0000>, <2 x half> <half 0xH0000, half 0xH3C00>, i1 immarg false, i1 immarg true)
; IR-NEXT: br label %[[FLOW]]
; IR: [[FLOW1]]:
; IR-NEXT: br label %UnifiedReturnBlock
; IR: UnifiedReturnBlock:
; IR-NEXT: call void @llvm.amdgcn.exp.f32(i32 9, i32 0, float undef, float undef, float undef, float undef, i1 true, i1 true)
; IR-NEXT: ret void
@ -745,13 +748,10 @@ bb5: ; preds = %bb3
define amdgpu_ps void @uniformly_reached_export(float inreg %tmp25) {
.entry:
%tmp26 = fcmp olt float %tmp25, 0.000000e+00
br i1 %tmp26, label %.preheader.1, label %bb27
br i1 %tmp26, label %loop, label %bb27
.preheader.1: ; preds = %.entry
br label %bb
bb: ; preds = %bb, %.preheader.1
br label %bb
loop: ; preds = %loop, %.entry
br label %loop
bb27: ; preds = %.entry
call void @llvm.amdgcn.exp.compr.v2f16(i32 immarg 0, i32 immarg 15, <2 x half> <half 0xH3C00, half 0xH0000>, <2 x half> <half 0xH0000, half 0xH3C00>, i1 immarg true, i1 immarg true)