This is the mail archive of the gcc@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]

Re: RFC -- update_equiv_regs and friends



  In message <200103061616.LAA15507@hiauly1.hia.nrc.ca>you write:
  > >   In message <200103041901.OAA05842@jwlab.FEITH.COM>you write:
  > > Note that rtx_varies_p does check that the address is non-varying too:
  > > 
  > >    case MEM:
  > >       return ! RTX_UNCHANGING_P (x) || rtx_varies_p (XEXP (x, 0), for_ali
  > as);
  > 
  > On the PA, pic refs are unchanging so the address check doesn't come into
  > play.
Huh?

If RTX_UNCHANGING_P is set on the MEM (like it is for a PIC reference on the
PA), then we will call rtx_varies_p on the address (note carefully the "!"
before RTX_UNCHANGING_P).  If RTX_UNCHANGING_P is not set, then rtx_varies_p
will return nonzero because we don't know if the memory location is changes
or not.

jeff


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