]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not register edges for statements not understood.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 2 Aug 2022 21:31:37 +0000 (17:31 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 2 Aug 2022 23:23:47 +0000 (19:23 -0400)
commit70daecc03235aa7187b03681cebed6e04b32678e
treefb23690d47bf2152bf5f72296892bcd37b804349
parent502605a277d36cee1b0570982a16d97a43eace67
Do not register edges for statements not understood.

Previously, all gimple_cond types were undserstoof, with float values,
this is no longer true.  We should gracefully do nothing if the
gcond type is not supported.

PR tree-optimization/106510
gcc/
* gimple-range-fold.cc (fur_source::register_outgoing_edges):
  Check for unsupported statements early.

gcc/testsuite
* gcc.dg/pr106510.c: New.
gcc/gimple-range-fold.cc
gcc/testsuite/gcc.dg/pr106510.c [new file with mode: 0644]