]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/93868 copy SLP tree before re-arranging stmts
authorRichard Biener <rguenther@suse.de>
Tue, 25 Feb 2020 09:31:16 +0000 (10:31 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 25 Feb 2020 09:33:29 +0000 (10:33 +0100)
commit81c833b311b16cfd87a947374d5ffbbd48facd03
tree31b6c240eeb1696e9c9baaa385713cf810f95779
parent2473c81cb2d4627f2d72310f4eca951c6084b596
tree-optimization/93868 copy SLP tree before re-arranging stmts

This avoids altering possibly shared SLP subtrees when attempting
to get rid of permutations in SLP reductions by copying the SLP
subtree before re-arranging stmts in it.

2020-02-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/93868
* tree-vect-slp.c (slp_copy_subtree): New function.
(vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
re-arranging stmts in it.

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