diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-09-22 09:30:21 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-09-22 13:28:16 +0200 |
commit | fec75ab8c02be904de2963c0adb6d1e940a59761 (patch) | |
tree | 0669ad429f65951fb8257725317d0c627fb3ed85 /gcc/tree-ssa-loop-niter.c | |
parent | 7e5e44bd1729b7a9b458d512ddf61bfba5031869 (diff) | |
download | gcc-fec75ab8c02be904de2963c0adb6d1e940a59761.zip gcc-fec75ab8c02be904de2963c0adb6d1e940a59761.tar.gz gcc-fec75ab8c02be904de2963c0adb6d1e940a59761.tar.bz2 |
Check for BB before calling register_outgoing_edges.
We may be asked to fold an artificial statement not in the CFG. Since
there are no outgoing edges from those, avoid calling
register_outgoing_edges.
Tested on x86-64 Linux.
gcc/ChangeLog:
* gimple-range-fold.cc (fold_using_range::range_of_range_op):
Move check for non-empty BB here.
(fur_source::register_outgoing_edges): ...from here.
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
0 files changed, 0 insertions, 0 deletions