tree-optimization/95268 - fix commoning of clobbers
authorRichard Biener <rguenther@suse.de>
Fri, 22 May 2020 07:03:40 +0000 (09:03 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 22 May 2020 11:08:44 +0000 (13:08 +0200)
commit7c592aad23c22b9f888837020cd0a7475d8f3938
treed47c1442833949cabfd9859b60558c08db162065
parent1089a367c4b05b5e3f072adca8913904ed65928c
tree-optimization/95268 - fix commoning of clobbers

This fixes handling of clobbers when commoning stores.

2020-05-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95268
* tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
properly.

* g++.dg/torture/pr95268.C: New testcase.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr95268.C [new file with mode: 0644]
gcc/tree-ssa-sink.c