Displaying 2 results from an estimated 2 matches for "float2uint".
Did you mean:
float2int
2012 Jan 02
0
[LLVMdev] Transforming wide integer computations back to vector computations
...gt;
>> It seems that one of the optimization passes (it seems to be SROA) sometimes transforms computations on vectors of ints to computations on wide integer types; for example, I'm seeing code like the following after optimizations(*):
>>
>> %0 = bitcast<16 x i8> %float2uint to i128
>> %1 = shl i128 %0, 8
>> %ins = or i128 %1, 255
>> %2 = bitcast i128 %ins to<16 x i8>
>
> this would probably be better expressed as a vector shuffle. What's the
> testcase?
The bitcode below, then run through "opt -scalarrepl-ssa", s...
2012 Jan 02
2
[LLVMdev] Transforming wide integer computations back to vector computations
It seems that one of the optimization passes (it seems to be SROA) sometimes transforms computations on vectors of ints to computations on wide integer types; for example, I'm seeing code like the following after optimizations(*):
%0 = bitcast <16 x i8> %float2uint to i128
%1 = shl i128 %0, 8
%ins = or i128 %1, 255
%2 = bitcast i128 %ins to <16 x i8>
The back end I'm trying to get this code to go through (a hacked up version of the LLVM C backend(**)) doesn't support wide integer types, but is fine with the original vectors of integers; I...