This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about comment in arm_legitimize_address()
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: rearnshaw at arm dot com
- Cc: gcc at gcc dot gnu dot org
- Date: 19 Oct 2004 14:43:18 -0400
- Subject: Question about comment in arm_legitimize_address()
In the function thumb_legitimize_address() I see this:
/* Try and fold the offset into a biasing of the base register and
then offsetting that. Don't do this when optimizing for space
since it can cause too many CSEs. */
if (optimize_size && offset >= 0
&& offset < 256 + 31 * GET_MODE_SIZE (mode))
The comment says don't do it when optimizing for space. The code says
to do it only when optimizing for space. You added the function here:
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg02380.html
Which is correct? The comment or the code?
Ian