]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/122079 - PRE antic_compute doesn't converge
authorRichard Biener <rguenther@suse.de>
Wed, 1 Oct 2025 12:16:50 +0000 (14:16 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Oct 2025 07:12:10 +0000 (09:12 +0200)
commit0e91910c0708a60b3ac521a4ea74e44301109f4a
tree497a050ea8cf64c529ba645f3a911a2cb6b82d2e
parent6051a849aa1e8ed444ee71161d90fd800469121d
tree-optimization/122079 - PRE antic_compute doesn't converge

The following fixes another case of us pruning from the value set
based on the expression set after expression removal when the
maximum expression set is involved.

PR tree-optimization/122079
* tree-ssa-pre.cc (prune_clobbered_mems): Do not prune
values when the maximum expression set is involved.

* gcc.dg/torture/pr122079-1.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr122079-1.c [new file with mode: 0644]
gcc/tree-ssa-pre.cc