From patchwork Fri Apr 15 23:31:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 91459 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id EB6871007D7 for ; Sat, 16 Apr 2011 09:34:43 +1000 (EST) Received: (qmail 2791 invoked by alias); 15 Apr 2011 23:34:41 -0000 Received: (qmail 2627 invoked by uid 22791); 15 Apr 2011 23:34:40 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_CP, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Apr 2011 23:34:06 +0000 Received: (qmail 17239 invoked from network); 15 Apr 2011 23:34:05 -0000 Received: from unknown (HELO ?84.152.202.246?) (bernds@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Apr 2011 23:34:05 -0000 Message-ID: <4DA8D561.7030502@codesourcery.com> Date: Sat, 16 Apr 2011 01:31:45 +0200 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110325 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: GCC Patches Subject: Fix PR48629 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This is a typo/thinko introduced with one of my recent scheduler patches. Rather than flag_sched_pressure we have to use sched_pressure_p, which accurately is only set during sched1. Bootstrapped and tested on i686-linux, and committed as obvious. Bernd Index: ChangeLog =================================================================== --- ChangeLog (revision 172524) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2011-04-16 Bernd Schmidt + + PR target/48629 + * haifa-sched.c (prune_ready_list, schedule_block): Use + sched_pressure_p rather than flag_sched_pressure. + 2011-04-15 Pat Haugen * config/rs6000/rs6000.c (call_ABI_of_interest): Call Index: haifa-sched.c =================================================================== --- haifa-sched.c (revision 172368) +++ haifa-sched.c (working copy) @@ -2898,7 +2898,7 @@ prune_ready_list (state_t temp_state, bo cost = 1; reason = "asm"; } - else if (flag_sched_pressure) + else if (sched_pressure_p) cost = 0; else { @@ -3232,7 +3232,7 @@ schedule_block (basic_block *target_bb) { memcpy (temp_state, curr_state, dfa_state_size); cost = state_transition (curr_state, insn); - if (!flag_sched_pressure) + if (!sched_pressure_p) gcc_assert (cost < 0); if (memcmp (temp_state, curr_state, dfa_state_size) != 0) cycle_issued_insns++;