aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/gimple-parser.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-05-17 15:53:39 -0400
committerAndrew MacLeod <amacleod@redhat.com>2021-05-17 18:11:24 -0400
commit3f476de7fd274f619a0b04c2e2f7077ee8ab17a5 (patch)
tree043de12912155b313456535691049de649e06284 /gcc/c/gimple-parser.c
parent5282b2ac00148a39d7ae09821d64dbc9c32cbf5f (diff)
downloadgcc-3f476de7fd274f619a0b04c2e2f7077ee8ab17a5.zip
gcc-3f476de7fd274f619a0b04c2e2f7077ee8ab17a5.tar.gz
gcc-3f476de7fd274f619a0b04c2e2f7077ee8ab17a5.tar.bz2
Once a range becomes constant, make it invariant.
Once a range is forced to a constant globally, simply make it invariant. Unify this with the code which makes non-zero pointer ranges invariant. gcc/ PR tree-optimization/100512 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const and non-zero pointer ranges as invariant. * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer processing from here. gcc/testsuite/ PR tree-optimization/100512 * gcc.dg/pr100512.c: New.
Diffstat (limited to 'gcc/c/gimple-parser.c')
0 files changed, 0 insertions, 0 deletions