https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97741
--- Comment #5 from CVS 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:129e1a8a96d140150705fab30d25afb464eb1d99 commit r11-4795-g129e1a8a96d140150705fab30d25afb464eb1d99 Author: Andrew MacLeod <amacl...@redhat.com> Date: Fri Nov 6 14:14:46 2020 -0500 Combine new calculated ranges with existing range. When a range is recalculated, retain what was previously known as IL changes can produce different results from un-executed code. This also paves the way for external injection of ranges. gcc/ PR tree-optimization/97737 PR tree-optimization/97741 * gimple-range.cc: (gimple_ranger::range_of_stmt): Intersect newly calculated ranges with the existing known global range. gcc/testsuite/ * gcc.dg/pr97737.c: New. * gcc.dg/pr97741.c: New.