Re: [PATCH] i386: Add combiner splitter to optimize V2SImode memory rotation [PR96166]

2021-02-13 Thread Jakub Jelinek via Gcc-patches
On Sat, Feb 13, 2021 at 09:59:57AM +0100, Uros Bizjak wrote: > BTW: I wonder if this optimization triggers frequently, the code in > the PR looks quite useful. On my next bootstrap/regtest I can gather some statistics. Jakub

Re: [PATCH] i386: Add combiner splitter to optimize V2SImode memory rotation [PR96166]

2021-02-13 Thread Uros Bizjak via Gcc-patches
On Sat, Feb 13, 2021 at 9:47 AM Jakub Jelinek wrote: > > Hi! > > Since the x86 backend enabled V2SImode vectorization (with > TARGET_MMX_WITH_SSE), slp vectorization can kick in and emit > movq(%rdi), %xmm1 > pshufd $225, %xmm1, %xmm0 > movq%xmm0, (%rdi) > instead

[PATCH] i386: Add combiner splitter to optimize V2SImode memory rotation [PR96166]

2021-02-13 Thread Jakub Jelinek via Gcc-patches
Hi! Since the x86 backend enabled V2SImode vectorization (with TARGET_MMX_WITH_SSE), slp vectorization can kick in and emit movq(%rdi), %xmm1 pshufd $225, %xmm1, %xmm0 movq%xmm0, (%rdi) instead of rolq$32, (%rdi) we used to emit (or emit when slp vector