]> gcc.gnu.org Git - gcc.git/commit
[SVE] Fold svrev(svrev(v)) to v.
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 24 Apr 2023 19:42:28 +0000 (01:12 +0530)
committerPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 24 Apr 2023 19:46:11 +0000 (01:16 +0530)
commitf0eabc52c9a2d3da0bfc201da7a5c1658b76e9a4
treeb56d5ae891cdc8f90c51e475bd662442b9c1b803
parentad1816a8ab6c7baf7180e5e2644063db42f75a0f
[SVE] Fold svrev(svrev(v)) to v.

gcc/ChangeLog:
* tree-ssa-forwprop.cc (is_combined_permutation_identity): Try to
simplify two successive VEC_PERM_EXPRs with same VLA mask,
where mask chooses elements in reverse order.

gcc/testsuite/ChangeLog:
* gcc.target/aarch64/sve/acle/general/rev-1.c: New test.
gcc/testsuite/gcc.target/aarch64/sve/acle/general/rev-1.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc
This page took 0.062114 seconds and 6 git commands to generate.