You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
define <8 x float> @shuffle(<4 x float> %a0, <4 x float> %a1) {
%x = shufflevector <4 x float> %a0, <4 x float> %a1, <8 x i32> <i320, i321, i322, i323, i324, i325, i326, i327>
%y = shufflevector <8 x float> %x, <8 x float> poison, <8 x i32> <i320, i324, i321, i325, i322, i326, i323, i327>
ret <8 x float> %y
}
foldShuffleOfShuffles currently fails to merge "permute of shuffle" patterns if the vector length changes
But it will happily fold:
define <4 x float> @shuffle2(<4 x float> %a0, <4 x float> %a1) {
%x = shufflevector <4 x float> %a0, <4 x float> %a1, <4 x i32> <i320, i324, i325, i323>
%y = shufflevector <4 x float> %x, <4 x float> poison, <4 x i32> <i320, i323, i321, i322>
ret <4 x float> %y
}
->
define <4 x float> @shuffle2(<4 x float> %a0, <4 x float> %a1) {
%y = shufflevector <4 x float> %a0, <4 x float> %a1, <4 x i32> <i320, i323, i324, i325>
ret <4 x float> %y
}
Activity
[VectorCombine] foldShuffleOfShuffles - fold shuffle(shuffle(x,y),poi…
[VectorCombine] foldShuffleOfShuffles - fold shuffle(shuffle(x,y),poi…
[VectorCombine] foldShuffleOfShuffles - fold shuffle(shuffle(x,y),poi…