commit | fec75ab8c02be904de2963c0adb6d1e940a59761 | [log] [tgz] |
---|---|---|
author | Aldy Hernandez <aldyh@redhat.com> | Wed Sep 22 09:30:21 2021 +0200 |
committer | Aldy Hernandez <aldyh@redhat.com> | Wed Sep 22 13:28:16 2021 +0200 |
tree | 0669ad429f65951fb8257725317d0c627fb3ed85 | |
parent | 7e5e44bd1729b7a9b458d512ddf61bfba5031869 [diff] |
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.