Displaying 3 results from an estimated 3 matches for "vecext7".
Did you mean:
vecext4
2020 Jan 11
2
[RFC][SDAG] Convert build_vector of ops on extractelts into ops on input vectors
...s, we can catch things such as
the following:
define dso_local <4 x float> @test(<4 x i32> %a, <4 x i32> %b) {
entry:
%vecext = extractelement <4 x i32> %a, i32 0
%vecext1 = extractelement <4 x i32> %a, i32 1
%vecext4 = extractelement <4 x i32> %b, i32 2
%vecext7 = extractelement <4 x i32> %b, i32 3
%conv = sitofp i32 %vecext to float
%conv2 = sitofp i32 %vecext1 to float
%conv5 = sitofp i32 %vecext4 to float
%conv8 = sitofp i32 %vecext7 to float
%vecinit = insertelement <4 x float> undef, float %conv, i32 0
%vecinit3 = insertelement...
2020 Jan 11
2
[RFC][SDAG] Convert build_vector of ops on extractelts into ops on input vectors
...define dso_local <4 x float> @test(<4 x i32> %a, <4 x i32> %b) {
>> entry:
>> %vecext = extractelement <4 x i32> %a, i32 0
>> %vecext1 = extractelement <4 x i32> %a, i32 1
>> %vecext4 = extractelement <4 x i32> %b, i32 2
>> %vecext7 = extractelement <4 x i32> %b, i32 3
>> %conv = sitofp i32 %vecext to float
>> %conv2 = sitofp i32 %vecext1 to float
>> %conv5 = sitofp i32 %vecext4 to float
>> %conv8 = sitofp i32 %vecext7 to float
>> %vecinit = insertelement <4 x float> undef, f...
2020 Jan 10
2
[RFC][SDAG] Convert build_vector of ops on extractelts into ops on input vectors
I have added a few PPC-specific DAG combines in the past that follow this
pattern on specific operations. Now that it appears that this would be
useful to do on yet another operation, I'm wondering what people think
about doing this in the target-independent DAG Combiner for any
legal/custom operation on the target.
TL; DR;
The generic pattern would look like this:
(build_vector (op