aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-nested.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2020-10-21 19:55:28 -0400
committerAndrew MacLeod <amacleod@redhat.com>2020-10-21 20:02:22 -0400
commitca5f4666f7a9404cdb04832324de3dd7d71e35c3 (patch)
tree1009d2a11e595ce97796371bcab61744f85f7581 /gcc/tree-nested.c
parent2ab1fc7a322e2582772f0e4ed916508c890175e3 (diff)
downloadgcc-ca5f4666f7a9404cdb04832324de3dd7d71e35c3.zip
gcc-ca5f4666f7a9404cdb04832324de3dd7d71e35c3.tar.gz
gcc-ca5f4666f7a9404cdb04832324de3dd7d71e35c3.tar.bz2
Check for undefined before not returning a constant value
Don't return UNDEFINED for a range in an unreachable block if the global value evaluates to a constant. Return that constant instead. PR tree-optimization/97515 * value-query.cc (range_query::value_of_expr): If the result is UNDEFINED, check to see if the global value is a constant. (range_query::value_on_edge): Ditto.
Diffstat (limited to 'gcc/tree-nested.c')
0 files changed, 0 insertions, 0 deletions