@@ -717,8 +717,8 @@ failure:
717
717
unreachable
718
718
}
719
719
720
- define i32 @test_multiple_pred_undef_1 (i1 %cond , i1 %cond2 ) {
721
- ; CHECK-LABEL: @test_multiple_pred_undef_1 (
720
+ define i32 @test_multiple_pred_poison_1 (i1 %cond , i1 %cond2 ) {
721
+ ; CHECK-LABEL: @test_multiple_pred_poison_1 (
722
722
; CHECK-NEXT: entry:
723
723
; CHECK-NEXT: br label [[LOOP:%.*]]
724
724
; CHECK: loop:
@@ -739,7 +739,7 @@ define i32 @test_multiple_pred_undef_1(i1 %cond, i1 %cond2) {
739
739
; CHECK: if.false.2:
740
740
; CHECK-NEXT: br label [[BACKEDGE]]
741
741
; CHECK: backedge:
742
- ; CHECK-NEXT: [[MERGE_PHI:%.*]] = phi i32 [ 0, [[IF_FALSE_1]] ], [ 0, [[IF_FALSE_2]] ], [ [[SUB]], [[IF_TRUE_1]] ], [ undef , [[IF_TRUE_2]] ]
742
+ ; CHECK-NEXT: [[MERGE_PHI:%.*]] = phi i32 [ 0, [[IF_FALSE_1]] ], [ 0, [[IF_FALSE_2]] ], [ [[SUB]], [[IF_TRUE_1]] ], [ poison , [[IF_TRUE_2]] ]
743
743
; CHECK-NEXT: [[SUM_NEXT:%.*]] = add i32 [[SUM]], [[MERGE_PHI]]
744
744
; CHECK-NEXT: [[LOOP_COND:%.*]] = icmp ne i32 [[SUM_NEXT]], 4
745
745
; CHECK-NEXT: br label [[DONE:%.*]]
@@ -777,7 +777,7 @@ if.false.2:
777
777
br label %backedge
778
778
779
779
backedge:
780
- %merge.phi = phi i32 [ 0 , %if.false.1 ], [ 0 , %if.false.2 ], [ %sub , %if.true.1 ], [ undef , %if.true.2 ]
780
+ %merge.phi = phi i32 [ 0 , %if.false.1 ], [ 0 , %if.false.2 ], [ %sub , %if.true.1 ], [ poison , %if.true.2 ]
781
781
%sum.next = add i32 %sum , %merge.phi
782
782
%loop.cond = icmp ne i32 %sum.next , 4
783
783
br i1 %loop.cond , label %loop , label %done
@@ -790,8 +790,8 @@ failure:
790
790
unreachable
791
791
}
792
792
793
- define i32 @test_multiple_pred_undef_2 (i1 %cond , i1 %cond2 ) {
794
- ; CHECK-LABEL: @test_multiple_pred_undef_2 (
793
+ define i32 @test_multiple_pred_poison_2 (i1 %cond , i1 %cond2 ) {
794
+ ; CHECK-LABEL: @test_multiple_pred_poison_2 (
795
795
; CHECK-NEXT: entry:
796
796
; CHECK-NEXT: br label [[LOOP:%.*]]
797
797
; CHECK: loop:
@@ -812,7 +812,7 @@ define i32 @test_multiple_pred_undef_2(i1 %cond, i1 %cond2) {
812
812
; CHECK: if.false.2:
813
813
; CHECK-NEXT: br label [[BACKEDGE]]
814
814
; CHECK: backedge:
815
- ; CHECK-NEXT: [[MERGE_PHI:%.*]] = phi i32 [ 0, [[IF_FALSE_1]] ], [ 0, [[IF_FALSE_2]] ], [ undef , [[IF_TRUE_1]] ], [ [[SUB]], [[IF_TRUE_2]] ]
815
+ ; CHECK-NEXT: [[MERGE_PHI:%.*]] = phi i32 [ 0, [[IF_FALSE_1]] ], [ 0, [[IF_FALSE_2]] ], [ poison , [[IF_TRUE_1]] ], [ [[SUB]], [[IF_TRUE_2]] ]
816
816
; CHECK-NEXT: [[SUM_NEXT:%.*]] = add i32 [[SUM]], [[MERGE_PHI]]
817
817
; CHECK-NEXT: [[LOOP_COND:%.*]] = icmp ne i32 [[SUM_NEXT]], 4
818
818
; CHECK-NEXT: br label [[DONE:%.*]]
@@ -850,7 +850,7 @@ if.false.2:
850
850
br label %backedge
851
851
852
852
backedge:
853
- %merge.phi = phi i32 [ 0 , %if.false.1 ], [ 0 , %if.false.2 ], [ undef , %if.true.1 ], [ %sub , %if.true.2 ]
853
+ %merge.phi = phi i32 [ 0 , %if.false.1 ], [ 0 , %if.false.2 ], [ poison , %if.true.1 ], [ %sub , %if.true.2 ]
854
854
%sum.next = add i32 %sum , %merge.phi
855
855
%loop.cond = icmp ne i32 %sum.next , 4
856
856
br i1 %loop.cond , label %loop , label %done
@@ -863,8 +863,8 @@ failure:
863
863
unreachable
864
864
}
865
865
866
- define i32 @test_multiple_pred_undef_3 (i1 %cond , i1 %cond2 ) {
867
- ; CHECK-LABEL: @test_multiple_pred_undef_3 (
866
+ define i32 @test_multiple_pred_poison_3 (i1 %cond , i1 %cond2 ) {
867
+ ; CHECK-LABEL: @test_multiple_pred_poison_3 (
868
868
; CHECK-NEXT: entry:
869
869
; CHECK-NEXT: br label [[LOOP:%.*]]
870
870
; CHECK: loop:
@@ -885,7 +885,7 @@ define i32 @test_multiple_pred_undef_3(i1 %cond, i1 %cond2) {
885
885
; CHECK: if.false.2:
886
886
; CHECK-NEXT: br label [[BACKEDGE]]
887
887
; CHECK: backedge:
888
- ; CHECK-NEXT: [[MERGE_PHI:%.*]] = phi i32 [ 0, [[IF_FALSE_1]] ], [ 0, [[IF_FALSE_2]] ], [ undef , [[IF_TRUE_1]] ], [ undef , [[IF_TRUE_2]] ]
888
+ ; CHECK-NEXT: [[MERGE_PHI:%.*]] = phi i32 [ 0, [[IF_FALSE_1]] ], [ 0, [[IF_FALSE_2]] ], [ poison , [[IF_TRUE_1]] ], [ poison , [[IF_TRUE_2]] ]
889
889
; CHECK-NEXT: [[SUM_NEXT:%.*]] = add i32 [[SUM]], [[MERGE_PHI]]
890
890
; CHECK-NEXT: [[LOOP_COND:%.*]] = icmp ne i32 [[SUM_NEXT]], 4
891
891
; CHECK-NEXT: br label [[DONE:%.*]]
@@ -923,7 +923,7 @@ if.false.2:
923
923
br label %backedge
924
924
925
925
backedge:
926
- %merge.phi = phi i32 [ 0 , %if.false.1 ], [ 0 , %if.false.2 ], [ undef , %if.true.1 ], [ undef , %if.true.2 ]
926
+ %merge.phi = phi i32 [ 0 , %if.false.1 ], [ 0 , %if.false.2 ], [ poison , %if.true.1 ], [ poison , %if.true.2 ]
927
927
%sum.next = add i32 %sum , %merge.phi
928
928
%loop.cond = icmp ne i32 %sum.next , 4
929
929
br i1 %loop.cond , label %loop , label %done
0 commit comments