https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101158
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:578bc9d1cdd91694e4da393d32f0fddd213a6042 commit r10-10460-g578bc9d1cdd91694e4da393d32f0fddd213a6042 Author: Richard Biener <rguent...@suse.de> Date: Tue Jun 22 09:24:24 2021 +0200 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 <rguent...@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)