RE: [PATCH] aarch64: remove useless pairs of rev instructions

2023-07-18 Thread Serval Martinot-Lagarde via Gcc-patches
Hi Prathamesh, > On Tue, 18 Jul 2023 at 12:54, Prathamesh Kulkarni > wrote: > I had added a similar transform to remove pair of rev instructions in: > https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f0eabc52c9a2d3da0bfc201da7a5 > c1658b76e9a4 I don't have much knowledge of GCC code, but your

[PATCH] aarch64: remove useless pairs of rev instructions

2023-07-18 Thread Serval Martinot-Lagarde via Gcc-patches
SVE generates superflous rev instructions that can be replaced by single mov instruction or a pair of (rev, mov) instructions gcc/ * config/aarch64/aarch64-sve.md: New peephole2. * testsuite/gcc.target/aarch64/sve/revrev.c: New dg test. Signed-off-by: Serval Martinot-Lagarde ---