]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/101394 - fix PRE full redundancy wrt abnormals
authorRichard Biener <rguenther@suse.de>
Mon, 12 Jul 2021 08:49:03 +0000 (10:49 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 13 Jul 2021 09:47:06 +0000 (11:47 +0200)
commit7d060844c0de1ed65da84374cae6fa1598011f4a
treecb636e4848a1c68dabb63a0e050392af334914fb
parent2d90f3ed9c63926cb6f150aa0dcad4d16a4c16c7
tree-optimization/101394 - fix PRE full redundancy wrt abnormals

This avoids adding a copy from an abnormal picked up from PHI
translation much like we'd avoid inserting the translated
expression on pred edges.

2021-07-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101394
* tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
copies from abnormals for a full redundancy.

* gcc.dg/torture/pr101394.c: New testcase.

(cherry picked from commit 92343e0ba4d47f21ae20ffcb83d736bdbc15dae0)
gcc/testsuite/gcc.dg/torture/pr101394.c [new file with mode: 0644]
gcc/tree-ssa-pre.c