aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2020-11-06 14:14:46 -0500
committerAndrew MacLeod <amacleod@redhat.com>2020-11-06 14:20:54 -0500
commit129e1a8a96d140150705fab30d25afb464eb1d99 (patch)
tree07ad6c227d61e224f8495143c81292a079db91fe /gcc/function.c
parent25126a28dbea7f9c7d6e5365929d7f3c9f60cdaf (diff)
downloadgcc-129e1a8a96d140150705fab30d25afb464eb1d99.zip
gcc-129e1a8a96d140150705fab30d25afb464eb1d99.tar.gz
gcc-129e1a8a96d140150705fab30d25afb464eb1d99.tar.bz2
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.
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions