]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/115602 - SLP CSE results in cycles
authorRichard Biener <rguenther@suse.de>
Mon, 24 Jun 2024 07:52:39 +0000 (09:52 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 24 Jun 2024 11:45:16 +0000 (13:45 +0200)
commitc43c74f6ec795a586388de7abfdd20a0040f6f16
treea20c95ea2767c05a9ae2a52e543e71b8bbd3496f
parent2f83ea87ee328d337f87d4430861221be9babe1e
tree-optimization/115602 - SLP CSE results in cycles

The following prevents SLP CSE to create new cycles which happened
because of a 1:1 permute node being present where its child was then
CSEd to the permute node.  Fixed by making a node only available to
CSE to after recursing.

PR tree-optimization/115602
* tree-vect-slp.cc (vect_cse_slp_nodes): Delay populating the
bst-map to avoid cycles.

* gcc.dg/vect/pr115602.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr115602.c [new file with mode: 0644]
gcc/tree-vect-slp.cc
This page took 0.072714 seconds and 6 git commands to generate.