Re: [PATCH 3/3] gimple: allow more folding of memcpy [PR102125]

2021-09-06 Thread Richard Biener via Gcc-patches
On Mon, Sep 6, 2021 at 12:40 PM Richard Earnshaw wrote: > > > The current restriction on folding memcpy to a single element of size > MOVE_MAX is excessively cautious on most machines and limits some > significant further optimizations. So relax the restriction provided > the copy size does not e

[PATCH 3/3] gimple: allow more folding of memcpy [PR102125]

2021-09-06 Thread Richard Earnshaw via Gcc-patches
The current restriction on folding memcpy to a single element of size MOVE_MAX is excessively cautious on most machines and limits some significant further optimizations. So relax the restriction provided the copy size does not exceed MOVE_MAX * MOVE_RATIO and that a SET insn exists for moving th