From 183c87cdb1a372669b7c479a0afbaafcc62f582c Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Wed, 11 Aug 2010 22:09:53 +0000 Subject: ira-int.h (ira_remove_allocno_copy_from_list): Remove. 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. From-SVN: r163175 --- gcc/ChangeLog | 6 ++++++ gcc/ira-build.c | 42 ------------------------------------------ gcc/ira-int.h | 1 - 3 files changed, 6 insertions(+), 43 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b7ed168c5c4..031e7d25da2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. + 2010-08-11 Sebastian Pop * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back diff --git a/gcc/ira-build.c b/gcc/ira-build.c index bf9124eca59..1d3021b342c 100644 --- a/gcc/ira-build.c +++ b/gcc/ira-build.c @@ -1224,48 +1224,6 @@ ira_add_allocno_copy_to_list (ira_copy_t cp) 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 diff --git a/gcc/ira-int.h b/gcc/ira-int.h index d06ce4e57cb..5b9b892ae02 100644 --- a/gcc/ira-int.h +++ b/gcc/ira-int.h @@ -957,7 +957,6 @@ extern ira_copy_t ira_create_copy (ira_allocno_t, ira_allocno_t, 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); -- cgit v1.2.1