From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D80B384A01B; Mon, 23 Mar 2020 11:26:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D80B384A01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584962762; bh=7Sf8BPca7oD6GDAN8XgdtR8uLgyuyLg9WNwpcST57Xc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G9gh2ahygV1P3C1Qiun0K1h5VO1EpqaDR+JBRfnZa4q0jylAcsRP+VxUHvNFKg4zF ii5O/D9xVTMX7lRvcT8E69nG0ChA2Q3eFx+YUjEKvgEu5u+ZlleCCIDNGChgrEQeET yCI3iufxEVj2KyhUG5cGXYu6opjROt8L9lcq4Oyc= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94261] [10 Regression] ICE in vect_get_vec_def_for_operand_1 for 3-element condition reduction Date: Mon, 23 Mar 2020 11:26:01 +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: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 10.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 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: Mon, 23 Mar 2020 11:26:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94261 --- Comment #6 from Richard Biener --- (In reply to rsandifo@gcc.gnu.org from comment #5) > (In reply to Richard Biener from comment #3) > > (In reply to Richard Biener from comment #2) > > > when placing gcc_unreachable () at the swapping place and most testca= ses > > > still pass when removing the IL operand swapping, only vect-cselim-1.c > > > runfails (investigating). > >=20 > > Ah, SLP ultimately fails here so the scalar IL is broken by the operati= on > > code adjustment. In the end we should be able to avoid doing tree code > > adjustments as well since we're swapping to make the code the same > > as the first stmts code and we only ever look at the first scalar stmt > > during SLP code-gen/analysis.=20 >=20 > Yeah, started wondering about that later too... So there's probably a single path where this is not true which is when we go through vect_attempt_slp_rearrange_stmts thus when we have a SLPed set of cond-reductions. I'm trying to come up with a testcase ... But I think the cure here should be to punt on vect_slp_rearrange_stmts, do you agree?=