From d5790af8baf56df2c67da791338b9e8ff5c576d2 Mon Sep 17 00:00:00 2001 From: bonzini Date: Fri, 5 Mar 2004 10:17:40 +0000 Subject: 2004-02-18 Paolo Bonzini * cse.c (cse_end_of_basic_block): Make static. * local-alloc.c (function_invariant_p): Move to reload1.c. * loop.c (libcall_other_reg, record_excess_regs): Make static. * reload1.c (function_invariant_p): Moved here from local-alloc.c, made static. * rtl.h (cse_end_of_basic_block, function_invariant_p, libcall_other_reg, record_excess_regs): Remove declarations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78960 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/local-alloc.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'gcc/local-alloc.c') diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index d71acab4dae..1802d093a69 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -759,27 +759,6 @@ memref_used_between_p (rtx memref, rtx start, rtx end) return 0; } -/* Return nonzero if the rtx X is invariant over the current function. */ -/* ??? Actually, the places this is used in reload expect exactly what - is tested here, and not everything that is function invariant. In - particular, the frame pointer and arg pointer are special cased; - pic_offset_table_rtx is not, and this will cause aborts when we - go to spill these things to memory. */ - -int -function_invariant_p (rtx x) -{ - if (CONSTANT_P (x)) - return 1; - if (x == frame_pointer_rtx || x == arg_pointer_rtx) - return 1; - if (GET_CODE (x) == PLUS - && (XEXP (x, 0) == frame_pointer_rtx || XEXP (x, 0) == arg_pointer_rtx) - && CONSTANT_P (XEXP (x, 1))) - return 1; - return 0; -} - /* Find registers that are equivalent to a single value throughout the compilation (either because they can be referenced in memory or are set once from a single constant). Lower their priority for a register. -- cgit v1.2.1