From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14215 invoked by alias); 24 Jun 2014 08:32:14 -0000 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 Received: (qmail 14157 invoked by uid 48); 24 Jun 2014 08:32:11 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/61572] [4.10 Regression] ICE: in assign_by_spills, at lra-assigns.c:1335 Date: Tue, 24 Jun 2014 08:32: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-Version: 4.10.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01845.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61572 --- Comment #6 from Richard Biener --- (In reply to Richard Biener from comment #5) > The question of course is why rdx is live from function entry to its first > use. > My patch will only continue to paper over this issue. Because of /* Set the bit for regs that are considered being defined at the entry. */ static void df_get_entry_block_def_set (bitmap entry_block_defs) { rtx r; int i; bitmap_clear (entry_block_defs); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) { if (global_regs[i]) bitmap_set_bit (entry_block_defs, i); if (FUNCTION_ARG_REGNO_P (i)) bitmap_set_bit (entry_block_defs, INCOMING_REGNO (i)); } dx is FUNCTION_ARG_REGNO_P. I wonder if we can do less conservative here ...