]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/110332 - fix ICE with phiprop
authorRichard Biener <rguenther@suse.de>
Thu, 22 Jun 2023 07:04:01 +0000 (09:04 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 22 Jun 2023 08:11:15 +0000 (10:11 +0200)
commit2ac41866270e9fbab504bbda7a942a97abaa203a
tree9f6422eb783b3454531afc4f1c4b60f529b011b7
parent5322f009e8f7d1c7a1c9aab7cb4c90c433398fdd
tree-optimization/110332 - fix ICE with phiprop

The following fixes an ICE that occurs when we visit an edge
inserted load from the code validating correctness for inserting
an aggregate copy there.  We can simply skip those loads here.

PR tree-optimization/110332
* tree-ssa-phiprop.cc (propagate_with_phi): Always
check aliasing with edge inserted loads.

* g++.dg/torture/pr110332.C: New testcase.
* gcc.dg/torture/pr110332-1.c: Likewise.
* gcc.dg/torture/pr110332-2.c: Likewise.
gcc/testsuite/g++.dg/torture/pr110332.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr110332-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr110332-2.c [new file with mode: 0644]
gcc/tree-ssa-phiprop.cc