Skip to content

Commit 4fc211c

Browse files
committed
Use poison instead of undef in splats
1 parent 928ec02 commit 4fc211c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/Transforms/InstCombine/vec_shuffle.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ define <vscale x 4 x i8> @widening_shuffle_add_1_scalable(<vscale x 2 x i8> %x)
658658
; CHECK-NEXT: [[R:%.*]] = shufflevector <vscale x 2 x i8> [[TMP1]], <vscale x 2 x i8> poison, <vscale x 4 x i32> zeroinitializer
659659
; CHECK-NEXT: ret <vscale x 4 x i8> [[R]]
660660
;
661-
%widex = shufflevector <vscale x 2 x i8> %x, <vscale x 2 x i8> undef, <vscale x 4 x i32> zeroinitializer
661+
%widex = shufflevector <vscale x 2 x i8> %x, <vscale x 2 x i8> poison, <vscale x 4 x i32> zeroinitializer
662662
%r = add <vscale x 4 x i8> %widex, splat (i8 42)
663663
ret <vscale x 4 x i8> %r
664664
}
@@ -955,7 +955,7 @@ define <vscale x 2 x i32> @shl_splat_constant0_scalable(<vscale x 2 x i32> %x) {
955955
; CHECK-NEXT: [[R:%.*]] = shufflevector <vscale x 2 x i32> [[TMP1]], <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
956956
; CHECK-NEXT: ret <vscale x 2 x i32> [[R]]
957957
;
958-
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> undef, <vscale x 2 x i32> zeroinitializer
958+
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
959959
%r = shl <vscale x 2 x i32> splat (i32 5), %splat
960960
ret <vscale x 2 x i32> %r
961961
}
@@ -966,7 +966,7 @@ define <vscale x 2 x i32> @shl_splat_constant1_scalable(<vscale x 2 x i32> %x) {
966966
; CHECK-NEXT: [[R:%.*]] = shufflevector <vscale x 2 x i32> [[TMP1]], <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
967967
; CHECK-NEXT: ret <vscale x 2 x i32> [[R]]
968968
;
969-
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> undef, <vscale x 2 x i32> zeroinitializer
969+
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
970970
%r = shl <vscale x 2 x i32> %splat, splat (i32 5)
971971
ret <vscale x 2 x i32> %r
972972
}
@@ -1087,7 +1087,7 @@ define <vscale x 2 x i32> @udiv_splat_constant0_scalable(<vscale x 2 x i32> %x)
10871087
; CHECK-NEXT: [[R:%.*]] = udiv <vscale x 2 x i32> splat (i32 42), [[SPLAT]]
10881088
; CHECK-NEXT: ret <vscale x 2 x i32> [[R]]
10891089
;
1090-
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> undef, <vscale x 2 x i32> zeroinitializer
1090+
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
10911091
%r = udiv <vscale x 2 x i32> splat (i32 42), %splat
10921092
ret <vscale x 2 x i32> %r
10931093
}
@@ -1098,7 +1098,7 @@ define <vscale x 2 x i32> @udiv_splat_constant1_scalable(<vscale x 2 x i32> %x)
10981098
; CHECK-NEXT: [[R:%.*]] = shufflevector <vscale x 2 x i32> [[TMP1]], <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
10991099
; CHECK-NEXT: ret <vscale x 2 x i32> [[R]]
11001100
;
1101-
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> undef, <vscale x 2 x i32> zeroinitializer
1101+
%splat = shufflevector <vscale x 2 x i32> %x, <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
11021102
%r = udiv <vscale x 2 x i32> %splat, splat (i32 42)
11031103
ret <vscale x 2 x i32> %r
11041104
}

0 commit comments

Comments
 (0)