From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18612 invoked by alias); 25 Jan 2013 15:34:17 -0000 Received: (qmail 17620 invoked by uid 48); 25 Jan 2013 15:33:59 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56034] [4.8 Regression] ICE: verify_gimple failed (invalid PHI argument) with -ftree-loop-distribution Date: Fri, 25 Jan 2013 15:34:00 -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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg02377.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56034 --- Comment #4 from Marek Polacek 2013-01-25 15:33:57 UTC --- So, we replace # a.0_26 = PHI with # a.0_26 = PHI <.MEM_10(5)> This happens when we call rewrite_into_loop_closed_ssa in case we're actually performing some loop distribution transformation. Then we call update_ssa and here with FOR_EACH_VEC_ELT (symbols_to_rename, i, sym) insert_updated_phi_nodes_for (sym, dfs, blocks_to_update, update_flags); change the PHI argument.