Re: [PATCH] PR middle-end/109031: Fix final value replacement from narrower IVs.

2023-03-12 Thread Jeff Law via Gcc-patches
On 3/12/23 09:04, Roger Sayle wrote: This patch fixes a P1 regression, a problem with my February 2022 patch to improve folding for final value replacement: https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590618.html The motivation for the original patch is that because we know the n

[PATCH] PR middle-end/109031: Fix final value replacement from narrower IVs.

2023-03-12 Thread Roger Sayle
This patch fixes a P1 regression, a problem with my February 2022 patch to improve folding for final value replacement: https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590618.html The motivation for the original patch is that because we know the number of loop iterations can't be negative