aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ch.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-09-03 10:42:37 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-09-03 15:30:56 +0200
commit5db93cd083890b29262ab93bc8e692990b781002 (patch)
tree45793b098773cb0e73558f5e2542306e5ceca2d2 /gcc/tree-ssa-loop-ch.c
parentbccf4b88e184e925ee2d7931e4cf09704f1c3932 (diff)
downloadgcc-5db93cd083890b29262ab93bc8e692990b781002.zip
gcc-5db93cd083890b29262ab93bc8e692990b781002.tar.gz
gcc-5db93cd083890b29262ab93bc8e692990b781002.tar.bz2
Skip statements with no BB in ranger.
The function postfold_gcond_edges() registers relations coming out of a GIMPLE_COND. With upcoming changes, we may be called with statements not in the IL (for example, dummy statements created by the forward threader). This patch avoids breakage by exiting if the statement does not have a defining basic block. There is a similar change to the path solver. Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges): Skip statements with no defining BB. * gimple-range-path.cc (path_range_query::range_defined_in_block): Do not get confused by statements with no defining BB.
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions