From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 40C3E3857705; Mon, 16 Oct 2023 12:50:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40C3E3857705 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697460601; bh=KweRwTr05onAApY9SeSsfYc+sYG4JhIV0xTu/ubZMA0=; h=From:To:Subject:Date:From; b=Qz1FW7lYara6pWn+wDswmrQrYgJS63LJ9q+QnNSfSBjTgyaVIDNKvaUVSbPglfPc2 9dBqcyylTuUtHrU76Wuu6UgqfdQYOE7wl144GDT6nJItFT8jeOisXEfgyai6liAilD MrMedbf7MdN/dbB28WauX09JBqVE4bVbBXyIouX0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/rguenth/heads/vect-force-slp)] Properly reject SLP gather with builtin decl X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/users/rguenth/heads/vect-force-slp X-Git-Oldrev: 484ffc302ddd9252ffa89223a6754dacf5613c36 X-Git-Newrev: 4eb4017ff1ca980e2ff8f78a21efd10f21f89c14 Message-Id: <20231016125001.40C3E3857705@sourceware.org> Date: Mon, 16 Oct 2023 12:50:01 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4eb4017ff1ca980e2ff8f78a21efd10f21f89c14 commit 4eb4017ff1ca980e2ff8f78a21efd10f21f89c14 Author: Richard Biener Date: Fri Sep 29 14:34:33 2023 +0200 Properly reject SLP gather with builtin decl The builtin decl path for gather load vectorization doesn't implement SLP (PR111131). Check that instead of ICEing. * tree-vect-stmts.cc (vectorizable_load): Reject SLP gather with builtin decl vectorization. Diff: --- gcc/tree-vect-stmts.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 88732fe14d7b..1fb07d2f190f 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -10069,6 +10069,14 @@ vectorizable_load (vec_info *vinfo, } } + if (memory_access_type == VMAT_GATHER_SCATTER && gs_info.decl && slp) + { + if (dump_enabled_p ()) + dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, + "unsupported SLP gather.\n"); + return false; + } + bool costing_p = !vec_stmt; if (costing_p) /* transformation not required. */