]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/109524 - ICE with VRP edge removal
authorRichard Biener <rguenther@suse.de>
Mon, 17 Apr 2023 07:22:57 +0000 (09:22 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 17 Apr 2023 09:02:29 +0000 (11:02 +0200)
commitf66ae49bba7d3b8c999498a0e166c0a2f99ec61a
tree5cd4d6543a1ad6aff72fb5aa6a27a76fdaab7d0d
parenta1f25e04b8d10bbe5dcaf98bb7e17cdaec9f169d
tree-optimization/109524 - ICE with VRP edge removal

VRP queues edges to process late for updating global ranges for
__builtin_unreachable.  But this interferes with edge removal
from substitute_and_fold.  The following deals with this by
looking up the edge with source/dest block indices which do not
become stale.

PR tree-optimization/109524
* tree-vrp.cc (remove_unreachable::m_list): Change to a
vector of pairs of block indices.
(remove_unreachable::maybe_register_block): Adjust.
(remove_unreachable::remove_and_update_globals): Likewise.
Deal with removed blocks.

* g++.dg/pr109524.C: New testcase.
gcc/testsuite/g++.dg/pr109524.C [new file with mode: 0644]
gcc/tree-vrp.cc
This page took 0.053073 seconds and 5 git commands to generate.