[PATCH] [PR rtl-optimization/97249]Simplify vec_select of paradoxical subreg.
Hongtao Liu
crazylht@gmail.com
Tue Oct 13 08:40:53 GMT 2020
Hi:
For rtx like
(vec_select:V2SI (subreg:V4SI (inner:V2SI) 0)
(parallel [(const_int 0) (const_int 1)]))
it could be simplified as inner.
Bootstrap is ok, regression test on i386 backend is ok.
gcc/ChangeLog
PR rtl-optimization/97249
* simplify-rtx.c (simplify_binary_operation_1): Simplify
vec_select of paradoxical subreg.
gcc/testsuite/ChangeLog
* gcc.target/i386/pr97249-1.c: New test.
--
BR,
Hongtao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Simplify-vec_select-of-paradoxical-subreg.patch
Type: text/x-patch
Size: 3180 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201013/21ae61ad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Simplify-vec_select-of-paradoxical-subreg.patch
Type: text/x-patch
Size: 3180 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201013/21ae61ad/attachment-0001.bin>
More information about the Gcc-patches
mailing list