https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126008
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:f2a4e2540221cb731e5b4296885279da6c58576f commit r17-2002-gf2a4e2540221cb731e5b4296885279da6c58576f Author: Richard Biener <[email protected]> Date: Mon Jun 29 13:21:16 2026 +0200 tree-optimization/126008 - redo PR125730 fix This reverts r17-1586, keeping its testcase and adding the one that regressed, fixing PR125730 in a different way, recognizing the issue at hand there is the emitted POINTER_PLUS_EXPRs that we should not have generated due to association done by IVOPTs via using tree-affine and by create_mem_ref as part of distributing the pieces. PR tree-optimization/126008 * tree-ssa-loop-ivopts.cc (alloc_iv): Revert last change. * tree-ssa-address.cc (add_to_parts): Use unsigned arithmetic to accumulate to base. * gcc.dg/torture/pr126008.c: New testcase.
