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]

Re: Patch to fix local-alloc REG_EQUIV handling




  In message <200103060111.UAA13213@jwlab.FEITH.COM>you write:
  > >  > 	* local-alloc.c (validate_equiv_mem): Reject memory
  > >  > 	addresses which vary.
  > > I'm almost certain this isn't needed.
  > >
  > > Why?  Because validate_equiv_mem already checks for anything which
  > > modifies the MEM's address.  ie, even though the address varies, we
  > > check explicitly for modifications in the interval we care about.
  > 
  > Don't we have the same reload problem if the MEM's address mentions a
  > pseudo?  The pseudo might not be live when reload uses the REG_EQUIV.
See my previous message.

validate_equiv_mem verifies that registers in the MEM's address do not die
across the set of insns where the equivalence might be used by local or
reload.

jeff


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