tree-optimization/93428 - avoid load permutation vector clobbering
authorRichard Biener <rguenther@suse.de>
Wed, 29 Jan 2020 08:05:05 +0000 (09:05 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 29 Jan 2020 08:06:08 +0000 (09:06 +0100)
commit148018bc3fe7ce47d005a1c5f7b6dd044024a4af
treea30ce10c81aca156f2ee9019eab8b7a6f94e6336
parent345ea96111385ecc2a38f1e9b18f4f07cb98140f
tree-optimization/93428 - avoid load permutation vector clobbering

With SLP now being a graph with shared nodes across instances we have
to make sure to compute the load permutation of nodes once, not
overwriting the result of earlier analysis.

2020-01-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/93428
* tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
permutation when the load node is created.
(vect_analyze_slp_instance): Re-use it here.

* gcc.dg/torture/pr93428.c: New testcase.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr93428.c [new file with mode: 0644]
gcc/tree-vect-slp.c