This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: discouraging register use
- From: DJ Delorie <dj at redhat dot com>
- To: dave dot korn at artimi dot com
- Cc: stevenb at suse dot de, gcc at gcc dot gnu dot org
- Date: Thu, 30 Dec 2004 21:29:45 -0500
- Subject: Re: discouraging register use
- References: <NUTMEGBdDA6VzpJxV0H00000b50@NUTMEG.CAM.ARTIMI.COM>
> How about spiking REGISTER_MOVE_COST and MEMORY_MOVE_COST so that
> gcc is severely discouraged from ever moving anything into the
> expensive registers in the first place?
I've got REGISTER_MOVE_COST setting moves to/from that class to
COSTS_N_INSNS(50). I've tried (1000) but it doesn't help.
MEMORY_MOVE_COST doesn't count because, as far as gcc knows, they're
registers.