From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDC6C3885C32; Mon, 23 Mar 2020 11:35:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDC6C3885C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584963337; bh=/PGigH4PqsN4uUoNsy+eJndsSPZyNfl436zxprCXiko=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Fbra8Kb7X6BY9K1fW/VmV+S8RQWqoetSGAbQvtJmxHkuzh1qtJOTLboNCimB5uADv ueKOC00fIlNsH8q39/tBTenl1kehrkCCoNZ/Z4CTGR5zHhsuIHFrSbN+Kk61HR8bFo V6W6MUpHIWiRRTAUguCFMEb9Y5eJ3wjrIT3ihCRM= From: "rsandifo 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:35:37 +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: rsandifo 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:35:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94261 --- Comment #7 from rsandifo at gcc dot gnu.org --- (In reply to Richard Biener from comment #6) > (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 test= cases > > > > 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 opera= tion > > > code adjustment. In the end we should be able to avoid doing tree co= de > > > 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... >=20 > 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 ... >=20 > But I think the cure here should be to punt on vect_slp_rearrange_stmts, > do you agree? You know SLP much better than me :-) But yeah, that sounds good. Would we need to punt even for swap=3D=3D1, or just swap=3D=3D2?=