]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Fri, 25 Jun 2021 07:05:06 +0000 (09:05 +0200)
commit48097089ae539bd5c2649681f93ce4a6bad72b11
tree9c2ae574db7a97630d45fef2cc9adbd278ae367f
parent8dc3768ffb4debc559e428fd508a4e8c59586c00
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.

(cherry picked from commit 7a22d8a764418265680a6bb9a9aec31e984eb015)
gcc/testsuite/gfortran.dg/pr101158.f90 [new file with mode: 0644]
gcc/tree-vect-slp.c