tree-optimization/101158 - adjust SLP call matching sequence
authorRichard Biener <rguenther@suse.de>
Tue, 22 Jun 2021 07:24:24 +0000 (09:24 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 22 Jun 2021 09:01:17 +0000 (11:01 +0200)
commit7a22d8a764418265680a6bb9a9aec31e984eb015
tree7e3d9917951b06a860dc4298e8e829bfb1267fd3
parenta5b773d3f86dd4333696cab0fe3a6953d3db74a3
tree-optimization/101158 - adjust SLP call matching sequence

This moves the check for same operands after verifying we're
facing compatible calls.

2021-06-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101158
* tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
checking after checking for matching operation.

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