Displaying 3 results from an estimated 3 matches for "manual_scalar".
2013 Aug 20
1
[LLVMdev] Failure to optimize vector select
...some tweaks, will be able to catch it.
>
I've tried manually scalarizing the arguments so the other select arguments are scalars, but the vectorizer still doesn't change it. Here is the scalarized IR.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: manual_scalarize.ll
Type: application/octet-stream
Size: 1739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130820/1b1f33b4/attachment.obj>
-------------- next part --------------
2013 Aug 20
0
[LLVMdev] Failure to optimize vector select
Hi Matt,
This code maintains a vector of float4 and it inserts and extracts values from this vector. The ’select’ operations are already vectorized. Maybe a sequence of inst-combines (or DAG-combines) can help. If you re-write this code using scalars then the slp-vectorizer, with some tweaks, will be able to catch it.
Thanks,
Nadav
On Aug 20, 2013, at 1:14 PM, Matt Arsenault <arsenm2 at
2013 Aug 20
3
[LLVMdev] Failure to optimize vector select
On Aug 20, 2013, at 10:22 , Nadav Rotem <nrotem at apple.com> wrote:
> Can you send the IR of the function ?
Attached is the -O0 and -O3 IR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vselect_optimized.ll
Type: application/octet-stream
Size: 1545 bytes
Desc: not available
URL: