This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
rl78 vs cse vs memory_address_addr_space
- From: DJ Delorie <dj at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 2 Jul 2015 00:14:44 -0400
- Subject: rl78 vs cse vs memory_address_addr_space
- Authentication-results: sourceware.org; auth=none
In this bit of code in explow.c:
/* By passing constant addresses through registers
we get a chance to cse them. */
if (! cse_not_expected && CONSTANT_P (x) && CONSTANT_ADDRESS_P (x))
x = force_reg (address_mode, x);
On the rl78 it results in code that's a bit too complex for later
passes to be optimized fully. Is there any way to indicate that the
above force_reg() is bad for a particular target?