Re: [PATCH] AArch64: Improve rotate patterns

2021-12-08 Thread Richard Sandiford via Gcc-patches
Wilco Dijkstra writes: > Improve and generalize rotate patterns. Rotates by more than half the > bitwidth of a register are canonicalized to rotate left. Many existing > shift patterns don't handle this case correctly, so add rotate left to > the shift iterator and convert rotate left into ror dur

[PATCH] AArch64: Improve rotate patterns

2021-12-08 Thread Wilco Dijkstra via Gcc-patches
Improve and generalize rotate patterns. Rotates by more than half the bitwidth of a register are canonicalized to rotate left. Many existing shift patterns don't handle this case correctly, so add rotate left to the shift iterator and convert rotate left into ror during assembly output. Add missing