diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-05 10:17:40 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-05 10:17:40 +0000 |
commit | d5790af8baf56df2c67da791338b9e8ff5c576d2 (patch) | |
tree | e25808a224115fb6cb5f5a75d510945a3104eb09 /gcc/local-alloc.c | |
parent | e60459edd9d6845f3339b2e89015580ad5bd5184 (diff) | |
download | gcc-d5790af8baf56df2c67da791338b9e8ff5c576d2.tar.gz |
2004-02-18 Paolo Bonzini <bonzini@gnu.org>
* 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
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 21 |
1 files changed, 0 insertions, 21 deletions
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. |