Question about comment in arm_legitimize_address()

Ian Lance Taylor ian@wasabisystems.com
Tue Oct 19 22:24:00 GMT 2004


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



More information about the Gcc mailing list