https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117467
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:c7fd6c4369ef1a009b40c1787ea9d2dad2cf449f commit r15-6000-gc7fd6c4369ef1a009b40c1787ea9d2dad2cf449f Author: Andrew MacLeod <amacl...@redhat.com> Date: Sat Nov 23 14:05:54 2024 -0500 Only add inferred ranges if they change the value. Do not add an inferred range if it is already incorprated in the current range of an SSA_NAME. PR tree-optimization/117467 * gimple-range-infer.cc (infer_range_manager::add_ranges): Check range_of_expr to see if the inferred range is needed.