From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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 19:40:00 -0000 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 Content-Type: multipart/mixed; boundary="------------090401060303060803050802" X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00466.txt.bz2 This is a multi-part message in MIME format. --------------090401060303060803050802 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 479 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. --------------090401060303060803050802 Content-Type: text/x-patch; name="pr65710-2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pr65710-2.patch" Content-length: 834 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++) --------------090401060303060803050802--