diff options
author | Hongyu Wang <hongyu.wang@intel.com> | 2022-01-17 13:01:51 +0800 |
---|---|---|
committer | Hongyu Wang <hongyu.wang@intel.com> | 2022-11-15 13:34:05 +0800 |
commit | dc95e1e9702f2f6367bbc108c8d01169be1b66d2 (patch) | |
tree | 50faeba31b0e0b822022987ca50fd70b946a8879 /gcc/fortran | |
parent | 73b582a8e34a3c523c8ece0c6674f473acecab53 (diff) | |
download | gcc-dc95e1e9702f2f6367bbc108c8d01169be1b66d2.zip gcc-dc95e1e9702f2f6367bbc108c8d01169be1b66d2.tar.gz gcc-dc95e1e9702f2f6367bbc108c8d01169be1b66d2.tar.bz2 |
Optimize VEC_PERM_EXPR with same permutation index and operation
The sequence
c1 = VEC_PERM_EXPR (a, a, mask)
c2 = VEC_PERM_EXPR (b, b, mask)
c3 = c1 op c2
can be optimized to
c = a op b
c3 = VEC_PERM_EXPR (c, c, mask)
for all integer vector operation, and float operation with
full permutation.
gcc/ChangeLog:
PR target/98167
* match.pd: New perm + vector op patterns for int and fp vector.
gcc/testsuite/ChangeLog:
PR target/98167
* gcc.target/i386/pr98167.c: New test.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions