re PR rtl-optimization/84003 (FAIL: g++.dg/torture/pr77745.C with noinline foo)
authorRichard Biener <rguenther@suse.de>
Fri, 26 Jan 2018 14:50:25 +0000 (14:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 26 Jan 2018 14:50:25 +0000 (14:50 +0000)
commitd7e1f499ed046bd1d57eaf4510778d2fc2666653
treeaf94a9ed7de3029422c43104fa59e8e934539808
parentda1f8d7f12c2efeadb3b127f6274fd0424c32410
re PR rtl-optimization/84003 (FAIL: g++.dg/torture/pr77745.C with noinline foo)

2018-01-26  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/84003
* dse.c (record_store): Only record redundant stores when
the earlier store aliases at least all accesses the later one does.

* g++.dg/torture/pr77745.C: Mark foo noinline to trigger
latent bug in DSE if NOINLINE is appropriately defined.
* g++.dg/torture/pr77745-2.C: New testcase including pr77745.C
and defining NOINLINE.

From-SVN: r257091
gcc/ChangeLog
gcc/dse.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr77745-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr77745.C