aboutsummaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-03-05 10:17:40 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2004-03-05 10:17:40 +0000
commit86caf04d48093177caa3904e186ef538e4094e9d (patch)
treee25808a224115fb6cb5f5a75d510945a3104eb09 /gcc/local-alloc.c
parentd0fe265e2c15a06650afe13d598e4f4b83fd96d6 (diff)
downloadgcc-86caf04d48093177caa3904e186ef538e4094e9d.zip
gcc-86caf04d48093177caa3904e186ef538e4094e9d.tar.gz
gcc-86caf04d48093177caa3904e186ef538e4094e9d.tar.bz2
cse.c (cse_end_of_basic_block): Make static.
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. From-SVN: r78960
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r--gcc/local-alloc.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index d71acab..1802d09 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.