From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 265A83851C34; Thu, 2 Jul 2020 09:14:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 265A83851C34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593681297; bh=WTBX6dhLKYLCtKtQ+7j6eRmbhf8V+8qZhQ7bHDH2z44=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a151dwgW9dWw6zdYawTEFP5Bg/DkxD5gjQc396dsFCqAa4BkcVwujS2iwqSmcBZJ1 aTu6GTPMZvfFh96lzQ9w3dj5W+YOCLlXxi3ep+5bZFry9HWVqiszo8CTUwMjZht/zg TjLk7eRj5EL8/HMiroJ929glBVRnLHi7dmi8fB7k= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95961] ICE: in exact_div, at poly-int.h:2182 Date: Thu, 02 Jul 2020 09:14:57 +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: 11.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: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2020 09:14:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95961 --- Comment #1 from CVS Commits --- The master branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:5c9669a0e6cbf477a03024522943197bdb2682d4 commit r11-1781-g5c9669a0e6cbf477a03024522943197bdb2682d4 Author: Fei Yang Date: Thu Jul 2 10:14:33 2020 +0100 vect: Fix an ICE in exact_div [PR95961] In the test case for PR95961, vectorization factor computed by vect_determine_vectorization_factor is [8,8]. But this is updated to [1,1] later by vect_update_vf_for_slp. When we call vect_get_num_vectors in vect_enhance_data_refs_alignment, the number of scalars which is based on the vectorization factor is not a multiple of the the number of elements in the vector type. This leads to the ICE. This isn't a simple stream of contiguous vector accesses. It's hard to predict from the available information how many vector accesses we'll actually need per iteration. As discussed, here we should use the number of scalars instead of the number of vectors as an upper bound for the loop saving info about DR in the hash table. 2020-07-02 Felix Yang gcc/ PR tree-optimization/95961 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use= the number of scalars instead of the number of vectors as an upper bound for the loop saving info about DR in the hash table. Remove un= used local variables. gcc/testsuite/ PR tree-optimization/95961 * gcc.target/aarch64/sve/pr95961.c: New test.=