[Bug tree-optimization/127082] [Missed optimization] 96 % [-96, -65] yields [0, 95] instead of [0, 31]
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 28 01:07:43 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127082
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacleod@gcc.gnu.org>:
https://gcc.gnu.org/g:c152cee29654b3008f20e2247251a980b40114e9
commit r17-3723-gc152cee29654b3008f20e2247251a980b40114e9
Author: Andrew MacLeod <amacleod@redhat.com>
Date: Thu Aug 27 17:06:30 2026 -0400
Handle different signs in MOD ranges.
PR tree-optimization/127082
gcc/
* range-op.cc (operator_trunc_mod::same_quotient): New.
(operator_trunc_mod::wi_fold): Call same_quotient.
gcc/testsuite/
* gcc.dg/pr127082.c: New.
More information about the Gcc-bugs
mailing list