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]
Other format: [Raw text]

Re: computation_cost too blind to hard regs


On Jan 19, 2005, at 22:48, Richard Henderson wrote:
On Wed, Jan 19, 2005 at 09:19:58PM -0500, DJ Delorie wrote:
-  int regno = 0;
+  int regno = FIRST_PSEUDO_REGISTER;

To be totally safe, you need LAST_VIRTUAL_REGISTER+1.

Also, this definitely needs a comment.


-Geert


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