Skip to content
Snippets Groups Projects
Commit 129e1a8a authored by Andrew MacLeod's avatar Andrew MacLeod
Browse files

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.
parent 25126a28
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment