This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Combine performance regression (was: Fix PR target/18701)


On Thu, 20 Jan 2005, Roger Sayle wrote:
> I think this entire clause in combine_simplify_rtx isn't required
> and can be deleted.  I'm currently bootstrapping and regression
> testing that change.

I assume you're talking about combine.c:1.471:3986:
      /* Don't change the mode of the MEM if that would change the meaning
         of the address.  */
      if (MEM_P (SUBREG_REG (x))
          && (MEM_VOLATILE_P (SUBREG_REG (x))
              || mode_dependent_address_p (XEXP (SUBREG_REG (x), 0))))
        return gen_rtx_CLOBBER (mode, const0_rtx);

(Which is either correct or likely what together with the other
bug confused me into thinking that something else could
somewhat-validly change the mode of the memory access.  Why else
would this code care whether the address is a
mode_dependent_address_p?  FWIW, no, I still haven't revisited
this thoroughly yet.)

How did that test go?

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]