diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-02-19 22:01:17 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-02-19 22:01:17 +0000 |
commit | 3d8504ac3262976d2c63d547a07aef0874f530b6 (patch) | |
tree | 548133d8c92115bf18fa7c2d6f3e7800dbd456bb /gcc/rtl.h | |
parent | c2a8530e21c7a3bc4824d00e0bb8ff39009da43a (diff) | |
download | gcc-3d8504ac3262976d2c63d547a07aef0874f530b6.zip gcc-3d8504ac3262976d2c63d547a07aef0874f530b6.tar.gz gcc-3d8504ac3262976d2c63d547a07aef0874f530b6.tar.bz2 |
gcse.c (want_to_gcse_p): On STACK_REGS targets...
* gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
constant pool references to identify stack mode constants.
* rtlanal.c (constant_pool_constant_p): New predicate to check
whether operand is a floating point constant in the pool.
* rtl.h (constant_pool_constant_p): Prototype here.
* loop.c (scan_loop): Avoid hoisting constants from the constant
pool on STACK_REGS targets.
(load_mems): Likewise.
* loop-invariant.c (get_inv_cost): Make hoisting constant pool
loads into x87 registers expensive in terms of register pressure.
Co-Authored-By: Steven Bosscher <stevenb.gcc@gmail.com>
From-SVN: r111283
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1046,6 +1046,7 @@ extern bool subreg_offset_representable_p (unsigned int, enum machine_mode, extern unsigned int subreg_regno (rtx); extern unsigned HOST_WIDE_INT nonzero_bits (rtx, enum machine_mode); extern unsigned int num_sign_bit_copies (rtx, enum machine_mode); +extern bool constant_pool_constant_p (rtx); /* 1 if RTX is a subreg containing a reg that is already known to be |