]> 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>
Mon, 12 Jul 2021 10:18:37 +0000 (12:18 +0200)
commit92343e0ba4d47f21ae20ffcb83d736bdbc15dae0
tree24735458da32f09d12172504c90bfc032706b72e
parent123d0a597beb6d9865f808bf15b0d67f2a8fd5b2
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.
gcc/testsuite/gcc.dg/torture/pr101394.c [new file with mode: 0644]
gcc/tree-ssa-pre.c