Displaying 1 result from an estimated 1 matches for "vecinit7".
Did you mean:
vecinit
2012 Feb 28
1
[LLVMdev] How to vectorize a vector type cast?
...sertelement <4 x float> %vecinit, float %conv2, i32 1
%3 = extractelement <4 x i8> %0, i32 2
%conv4 = uitofp i8 %3 to float
%vecinit5 = insertelement <4 x float> %vecinit3, float %conv4, i32 2
%4 = extractelement <4 x i8> %0, i32 3
%conv6 = uitofp i8 %4 to float
%vecinit7 = insertelement <4 x float> %vecinit5, float %conv6, i32 3
ret <4 x float> %vecinit7
Which does the cast as a sequence of scalar operations, whereas it could be done as
%1 = uitofp <4 x i8> %0 to <4 x float>
ret <4 x float> %1
It seemed to me that the recent...