From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3613B385842D; Wed, 3 May 2023 10:14:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3613B385842D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683108899; bh=YC/hEmLvgfs19fOwgsQRgfT0XPK902TM/gFwrXRJINo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UP49N0t90/pt02k9ILvo1iQpXaFF5ghnVF1E01dAkfInEMsFt3LTH41PEox03Ncmg kOS+QV1VihZwNNViB3zgCAfhj5bAu9vVGX77SPsBK/VO4oQcVH7B8Qwps579d+1Sg2 XfOmBsF1ZTT0r6ESrSg6zBm/eRT14E/VFZJd+Xy8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109473] [10 Regression] ICE during GIMPLE pass: vect: verify_gimple failed with -O1 -ftree-loop-vectorize since r10-4076-g82e8e335f917b9 Date: Wed, 03 May 2023 10:14:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109473 --- Comment #11 from CVS Commits --- The releases/gcc-11 branch has been updated by Richard Biener : https://gcc.gnu.org/g:ffb092784fc2513c2944253efc57c27de068c8b9 commit r11-10737-gffb092784fc2513c2944253efc57c27de068c8b9 Author: Richard Biener Date: Wed May 3 11:06:28 2023 +0200 tree-optimization/109473 - fix type mismatch in reduction vectorization When backporting the PR109473 fix I failed to realize its testcase will run into an unrelated similar bug. With GCC 12 the code has seen substantial refactoring so the following applies a local fix to make sure we are using the correct types when building initial values for reductions. PR tree-optimization/109473 * tree-vect-loop.c (get_initial_def_for_reduction): Convert the scalar values to the vector component type before using it to build the vector for the initial value.=