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: LRA for x86/x86-64 [3/9]


On 12-09-28 3:08 PM, Jeff Law wrote:
On 09/27/2012 04:57 PM, Vladimir Makarov wrote:
LRA creates a lot of new pseudos.  So the following patch implements
ahead allocation reg info information which is important for LRA
compilation speed.

2012-09-27 Vladimir Makarov <vmakarov@redhat.com>

     * reginfo.c (max_regno_since_last_resize): New.
     (reg_preferred_class, reg_alternate_class): Add assert.
     (allocate_reg_info): Initialize allocated reg info.
     (resize_reg_info): Make bigger reg_info and initialize new memory.
     (reginfo_init): Initialize max_regno_since_last_resize.
     (setup_reg_classes): Change assert.
This is fine. FWIW, it roughly mirrors code I wrote a couple years ago when working on range splitting.
I repeated it too several times for some my projects. So the history repeats. I think we should have added the code even if it would be never used.


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