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: [RFC, PATCH] Getting the live registers correct when caller-saves are inserted by reload


> Date: Tue, 4 Dec 2007 14:46:16 +0100 (CET)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>

> > +		      int i, regno = REGNO (reg);
> > +		      if (regno >= FIRST_PSEUDO_REGISTER)
> > +			regno = reg_renumber[regno];
> > +		      if (regno < 0)
> > +			continue;
> 
> I understand CALL_INSN_FUNCTION_USAGE can only contain hard
> registers anyway, so handling pseudos should be unnecessary
> here in the first place ...

Very well, I'll replace as obvious the two "if's" above with a
 gcc_assert (regno < FIRST_PSEUDO_REGISTER);
after a round of testing.

brgds, H-P


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