https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126008
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:ce6527969cdad948f67dd88854d5294fcb10b2c3 commit r16-9267-gce6527969cdad948f67dd88854d5294fcb10b2c3 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. (cherry picked from commit f2a4e2540221cb731e5b4296885279da6c58576f)
