From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5FB83890431; Wed, 17 Jun 2020 11:46:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5FB83890431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592394417; bh=u+AZAszVKUNtdvgkC9K+JHC5ffR/PbvOeHp7PNj5Puo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QZl1nlumv1Ha3N9U90SEUj7ca9Gajo+qGo10cr0UEewmFzSq6D8D0JV5fxc0bSb5o GJceM41RHl40gqf8KEqdtJ7HfSTwiiYwEO3OcwVYrTdYnXYv7tZaNh2+SoGmm3vCtD OEMDfD2mi2QmCzHfywHYqk61nul3natkXYsgOqqM= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95717] [9/10/11 Regression] ICE during GIMPLE pass: vect: verify_ssa failed since r9-5325-gf25507d041de4df6 Date: Wed, 17 Jun 2020 11:46: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: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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: Wed, 17 Jun 2020 11:46:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95717 --- Comment #4 from Richard Biener --- The bogus def is set via if (scalar_loop !=3D loop) { /* If we copied from SCALAR_LOOP rather than LOOP, SSA_NAMEs from SCALAR_LOOP will have current_def set to SSA_NAMEs in the new_loop, but LOOP will not. slpeel_update_phi_nodes_for_guard{1,2} expects the LOOP SSA_NAMEs (on the exit edge and edge from latch to header) to have current_def set, so copy them over. */=20 slpeel_duplicate_current_defs_from_edges (single_exit (scalar_loop), exit); because that interferes with the renaming process. The if-conversion applied the missed optimization to the to-be vectorized loop introducing a LC PHI (required for the not if-converted copy) which has one invariant and one non-invariant arg. So we have to do that copying after renaming in the BBs. That seems to wor= k, testing patch.=