]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/107107 - tail-merging VN wrong-code
authorRichard Biener <rguenther@suse.de>
Thu, 6 Oct 2022 09:20:16 +0000 (11:20 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 12 Dec 2022 13:10:20 +0000 (14:10 +0100)
commitfa11fc62ddee81a8bc3e69d5e3180695a6dbb666
tree61f3c8078291941f6716c64dc323814d35d1d88a
parent3e62dea6c2594b2d31a6c96b6a2372528cc5e371
tree-optimization/107107 - tail-merging VN wrong-code

The following fixes an unintended(?) side-effect of the special
MODIFY_EXPR expression entries we add for tail-merging during VN.
We shouldn't value-number the virtual operand differently here.

PR tree-optimization/107107
* tree-ssa-sccvn.c (visit_reference_op_store): Do not
affect value-numbering when doing the tail merging
MODIFY_EXPR lookup.

* gcc.dg/pr107107.c: New testcase.

(cherry picked from commit 85333b9265720fc4e49397301cb16324d2b89aa7)
gcc/testsuite/gcc.dg/pr107107.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c
This page took 0.069123 seconds and 5 git commands to generate.