From patchwork Wed Aug 11 22:13:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 61511 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 CEA42B6F14 for ; Thu, 12 Aug 2010 08:13:41 +1000 (EST) Received: (qmail 19564 invoked by alias); 11 Aug 2010 22:13:39 -0000 Received: (qmail 19555 invoked by uid 22791); 11 Aug 2010 22:13:39 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Aug 2010 22:13:35 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7BMDXWW012544 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 11 Aug 2010 18:13:34 -0400 Received: from toll.yyz.redhat.com (toll.yyz.redhat.com [10.15.16.165]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7BMDXbB024811 for ; Wed, 11 Aug 2010 18:13:33 -0400 Message-ID: <4C63208D.40908@redhat.com> Date: Wed, 11 Aug 2010 18:13:33 -0400 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1 MIME-Version: 1.0 To: gcc-patches Subject: Patch to remove unused function in IRA X-IsSubscribed: yes 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 As Jeff Law proposed, unused function from IRA has been removed. The patch is obvious but it was still bootstrap tested. 2010-08-11 Vladimir Makarov * ira-int.h (ira_remove_allocno_copy_from_list): Remove. * ira-build.c (ira_remove_allocno_copy_from_list): Remove. Index: ira-int.h =================================================================== --- ira-int.h (revision 163079) +++ ira-int.h (working copy) @@ -957,7 +957,6 @@ int, bool, rtx, ira_loop_tree_node_t); extern void ira_add_allocno_copy_to_list (ira_copy_t); extern void ira_swap_allocno_copy_ends_if_necessary (ira_copy_t); -extern void ira_remove_allocno_copy_from_list (ira_copy_t); extern ira_copy_t ira_add_allocno_copy (ira_allocno_t, ira_allocno_t, int, bool, rtx, ira_loop_tree_node_t); Index: ira-build.c =================================================================== --- ira-build.c (revision 163079) +++ ira-build.c (working copy) @@ -1224,48 +1224,6 @@ ALLOCNO_COPIES (second) = cp; } -/* Detach a copy CP from allocnos involved into the copy. */ -void -ira_remove_allocno_copy_from_list (ira_copy_t cp) -{ - ira_allocno_t first = cp->first, second = cp->second; - ira_copy_t prev, next; - - next = cp->next_first_allocno_copy; - prev = cp->prev_first_allocno_copy; - if (prev == NULL) - ALLOCNO_COPIES (first) = next; - else if (prev->first == first) - prev->next_first_allocno_copy = next; - else - prev->next_second_allocno_copy = next; - if (next != NULL) - { - if (next->first == first) - next->prev_first_allocno_copy = prev; - else - next->prev_second_allocno_copy = prev; - } - cp->prev_first_allocno_copy = cp->next_first_allocno_copy = NULL; - - next = cp->next_second_allocno_copy; - prev = cp->prev_second_allocno_copy; - if (prev == NULL) - ALLOCNO_COPIES (second) = next; - else if (prev->second == second) - prev->next_second_allocno_copy = next; - else - prev->next_first_allocno_copy = next; - if (next != NULL) - { - if (next->second == second) - next->prev_second_allocno_copy = prev; - else - next->prev_first_allocno_copy = prev; - } - cp->prev_second_allocno_copy = cp->next_second_allocno_copy = NULL; -} - /* Make a copy CP a canonical copy where number of the first allocno is less than the second one. */ void