From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 915F7385828E; Mon, 26 Aug 2024 12:08:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 915F7385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1724674128; bh=OkU3buYaSH1OminlNi2tVxSwMJPOl6IqpgdK2inSxwc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fleYG+kjPyjkPVuO7WDXo2UIzbf+eqq6uYNnd48vmZpSVuMrl8QIB+NwDflCzy3OW DztI5YZbc5lZEBI7ZnikAa7PqyDrHY/oa/chlzR1vn64oxl7624TeGXKS4Q2mYGlUF XCVaKCjdiE/H4/KiOoHqEVpeDXZ0Mm5g+3t25/mc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/116348] [15 regression] ICE when building gavl-1.4.0 with -O3 -march=znver4 since r15-2791-g2083389a18d366 Date: Mon, 26 Aug 2024 12:08:47 +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: 15.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: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.0 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=3D116348 --- Comment #12 from GCC Commits --- The master branch has been updated by Xi Ruoyao : https://gcc.gnu.org/g:d3e71b99194bff878d3bf3b35f9528a350d10df9 commit r15-3189-gd3e71b99194bff878d3bf3b35f9528a350d10df9 Author: Xi Ruoyao Date: Thu Aug 22 21:18:29 2024 +0800 vect: Fix STMT_VINFO_DEF_TYPE check for odd/even widen mult [PR116348] After fixing PR116142 some code started to trigger an ICE with -O3 -march=3Dznver4. Per Richard Biener who actually made this fix: "supportable_widening_operation fails at transform time - that's likely because vectorizable_reduction "puns" defs to internal_def" so the check should use STMT_VINFO_REDUC_DEF instead of checking if STMT_VINFO_DEF_TYPE is vect_reduction_def. gcc/ChangeLog: PR tree-optimization/116348 * tree-vect-stmts.cc (supportable_widening_operation): Use STMT_VINFO_REDUC_DEF (x) instead of STMT_VINFO_DEF_TYPE (x) =3D=3D vect_reduction_def. gcc/testsuite/ChangeLog: PR tree-optimization/116348 * gcc.c-torture/compile/pr116438.c: New test. Co-authored-by: Richard Biener =