tree-optimization/96491 - avoid store commoning across abnormal edges
authorRichard Biener <rguenther@suse.de>
Thu, 6 Aug 2020 10:18:24 +0000 (12:18 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 6 Aug 2020 10:19:48 +0000 (12:19 +0200)
commit89b84cd794f984038984c10b03c3b0ab582f49cc
treef078aa30750b4b3ac5fba4c8e64b475442e68a69
parent1f4c8afa1b2dac97f2ee78eacafe6eee246a4dae
tree-optimization/96491 - avoid store commoning across abnormal edges

This avoids store commoning across abnormal edges since that easily
can disrupt abnormal coalescing because it might create overlapping
lifetime of variables.

2020-08-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96491
* tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
sinking across abnormal edges.

* gcc.dg/torture/pr96491.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr96491.c [new file with mode: 0644]
gcc/tree-ssa-sink.c