[Bug tree-optimization/125730] [16/17 regression] cython miscompiled on sparc, hppa since r16-5197
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 16 09:07:09 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125730
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:c36539e6fd0dfa6bd1ebb891df68da9a5bd96163
commit r17-1586-gc36539e6fd0dfa6bd1ebb891df68da9a5bd96163
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jun 11 15:51:02 2026 +0200
tree-optimization/125730 - avoid losing track of base in IVOPTs
The PR highlights several places where IVOPTs gets lost in tracking
an appropriate base to use for a TARGET_MEM_REF. The following
addresses the initial place, enough to fix the bug, but already
showing difficulties in avoiding fallout. The first place is
alloc_iv where we convert the nice pointer IV to an unsigned integer
before applying affine canonicalization.
Removing that resolves the PR and with the fold_plusminus_mult_expr
change tests without regressions on x86_64.
PR tree-optimization/125730
* tree-ssa-loop-ivopts.cc (alloc_iv): Do not convert pointer
IVs to unsigned before canonicalizing.
* gcc.dg/torture/pr125730.c: New testcase.
More information about the Gcc-bugs
mailing list