From patchwork Fri Apr 10 19:40:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 460204 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1C19D140079 for ; Sat, 11 Apr 2015 05:40:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=XfynOdeP; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=Rcib329+TuIqpsHD9XwDlHl+4BOtQEdRUZtc0s5JS0+EZH r1E7l7CuSAPAbPUr6TxmKwwUBx0Zx5cToxawuKpbIX1dL36WpxipXNvTM97gqwoa D5YQY01fQ+ZFoDJVeiQ9NGzVLIAUcuifd62bTiNBKqniPDy73PrBU+mra+IQM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=PhJL3G04JcSDm+Pu6UwSHIzwF7Q=; b=XfynOdePtAaIPmpnGnd7 MMVJdYBSB4Az1eZoaMnHtUA12KNjub+0nwnqM3fqK30cQORkf8pxtO4rcZ1/NaT0 8PN7N24Pf2ptShqHbnY1jvQdzXtA7QvBH2VHEmEha+XPS8D/0m40NGuD0cZzk6to KPl7xPxiDSChn8EB6moNXXU= Received: (qmail 54232 invoked by alias); 10 Apr 2015 19:40:52 -0000 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 Received: (qmail 54210 invoked by uid 89); 10 Apr 2015 19:40:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 10 Apr 2015 19:40:50 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 50AF4AB120 for ; Fri, 10 Apr 2015 19:40:49 +0000 (UTC) Received: from [10.3.113.160] (ovpn-113-160.phx2.redhat.com [10.3.113.160]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3AJem5n006162 for ; Fri, 10 Apr 2015 15:40:49 -0400 Message-ID: <55282740.3040108@redhat.com> Date: Fri, 10 Apr 2015 15:40:48 -0400 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: one more patch for PR65710 X-IsSubscribed: yes Yesterday I did a mistake in a preparation of the patch for PR65710. Here is the patch correcting the mistake. The patch was bootstrapped and tested on x86/x86-64, ppc64, and aarch64. Committed as rev. 221983. I am committing the patch also to gcc-4.9-branch a bit later. 2015-04-10 Vladimir Makarov PR target/65710 * lra-assigns.c (spill_for): Update smallest_bad_spills_num. Print bad_spills_num and insn_pseudos_num. Index: lra-assigns.c =================================================================== --- lra-assigns.c (revision 221976) +++ lra-assigns.c (working copy) @@ -1045,12 +1045,14 @@ spill_for (int regno, bitmap spilled_pse && best_cost > cost)))) { best_insn_pseudos_num = insn_pseudos_num; + smallest_bad_spills_num = bad_spills_num; best_cost = cost; best_hard_regno = hard_regno; bitmap_copy (&best_spill_pseudos_bitmap, &spill_pseudos_bitmap); if (lra_dump_file != NULL) - fprintf (lra_dump_file, " Now best %d(cost=%d)\n", - hard_regno, cost); + fprintf (lra_dump_file, + " Now best %d(cost=%d, bad_spills=%d, insn_pseudos=%d)\n", + hard_regno, cost, bad_spills_num, insn_pseudos_num); } assign_temporarily (regno, -1); for (j = 0; j < n; j++)