]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/122435 - missed redundant store removal
authorRichard Biener <rguenther@suse.de>
Mon, 27 Oct 2025 10:15:17 +0000 (11:15 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 27 Oct 2025 12:21:39 +0000 (13:21 +0100)
commitff732017653dfe283a8cda54cbea0a44cb76d314
tree0cec095aab732e8dc9bfe179d248cba064b8c582
parented8b9eeeeeb98b3c34fc681d543f1ca582058f12
tree-optimization/122435 - missed redundant store removal

The following removes a noop store that just performs a type sign
change.

PR tree-optimization/122435
* tree-ssa-sccvn.cc (eliminate_dom_walker::eliminate_stmt):
Also match noop conversions when detecting redundant stores.

* gcc.dg/tree-ssa/ssa-fre-111.c: New testcase.
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-111.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.cc