tree-optimization/95495 - use SLP_TREE_REPRESENTATIVE in assertion
authorRichard Biener <rguenther@suse.de>
Wed, 3 Jun 2020 12:06:20 +0000 (14:06 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 3 Jun 2020 14:51:05 +0000 (16:51 +0200)
commit779ae320bfadc5d867ecaeddf394838d546b57b9
tree041b8953a2d4647dbd607af63443189571ed5bfb
parent079632de497a58a78971b8fc35cf3a52148857d1
tree-optimization/95495 - use SLP_TREE_REPRESENTATIVE in assertion

This fixes a place where I missed to use SLP_TREE_REPRESENTATIVE
after its introduction.

2020-06-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95495
* tree-vect-slp.c (vect_slp_analyze_node_operations): Use
SLP_TREE_REPRESENTATIVE in the shift assertion.

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