]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-optimization/93946 - fix TBAA for redundant store removal in CSE
authorRichard Biener <rguenther@suse.de>
Wed, 8 Apr 2020 12:04:35 +0000 (14:04 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 8 Apr 2020 17:27:59 +0000 (19:27 +0200)
commitdd9ca9d770a18ce4b16d867f49fef3293b483ff5
treedbdafc5ee792be0baf32a51201ae439824356b86
parent7dbfcb91a87f78446c5e10582d4ea9ea168f3f98
rtl-optimization/93946 - fix TBAA for redundant store removal in CSE

It turns out RTL CSE tries to remove redundant stores but fails to
do the usual validity check what such a change is TBAA neutral to
later loads.

This now triggers with the PR93946 testcases on nios2.

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

PR rtl-optimization/93946
* cse.c (cse_insn): Record the tabled expression in
src_related.  Verify a redundant store removal is valid.
gcc/ChangeLog
gcc/cse.c