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: find_free_registers improvement for new_ia32_branch


> > ! 	  while (forward && currdist < MAXDIST)
> > ! 	    {
> > ! 	      if (refers_to_regno_p (regno, regno + 1, forward, NULL))
> > ! 		goto found;
> > ! 	      currdist++;
> > ! 	      forward = NEXT_INSN (forward);
> > ! 	    }
> 
> This seems like an awfully expensive test.
Thats why I am using MAXDIST. It is set to 8, so not so many instrucitons
are examined and it is large enought to break dependencies.
> 
> Could you perhaps find a way to collect lru info during the
> mark_target_live_regs scan, to be saved in struct resource?
> That would at least cover the backward scan.
Do you have any suggestion how?
I am not sure if I can do it when I am absolutely not aware about changes
in the code...

Honza
> 
> 
> r~

-- 
                       OK. Lets make a signature file.
+-------------------------------------------------------------------------+
|        Jan Hubicka (Jan Hubi\v{c}ka in TeX) hubicka@freesoft.cz         |
|         Czech free software foundation: http://www.freesoft.cz          |
|AA project - the new way for computer graphics - http://www.ta.jcu.cz/aa |
|  homepage: http://www.paru.cas.cz/~hubicka/, games koules, Xonix, fast  |
|  fractal zoomer XaoS, index of Czech GNU/Linux/UN*X documentation etc.  | 
+-------------------------------------------------------------------------+


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