]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/113707 - ICE with VN elimination
authorRichard Biener <rguenther@suse.de>
Mon, 5 Feb 2024 08:44:12 +0000 (09:44 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 5 Feb 2024 10:07:07 +0000 (11:07 +0100)
commit42959acb8409c39e1c71c43528832611c3b71e25
tree1cee4415d97205eb7ab55ee140e8effe0684bdb5
parent9d139c036547a4b3b43439b82f94a9c350d4fa2f
tree-optimization/113707 - ICE with VN elimination

The following avoids different avail answers depending on how the
iteration progressed.

PR tree-optimization/113707
* tree-ssa-sccvn.cc (rpo_elim::eliminate_avail): After
checking the avail set treat out-of-region defines as
available.

* gcc.dg/torture/pr113707-1.c: New testcase.
* gcc.dg/torture/pr113707-2.c: Likewise.
gcc/testsuite/gcc.dg/torture/pr113707-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr113707-2.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.cc