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: regrename speedup


Eric Botcazou wrote:
>> 	PR rtl/38582
> 
> PR rtl-opt (or PR rtl-optimization).
> 
>> 	* regrename.c (struct du_head): New structure; some elements moved
>> 	from...
>> 	(struct du_chain): ... this one.
>> 	(open_chains, closed_chains): Now of type struct du_head *.
>> 	(do_replace): Accept du_head argument, not du_chain.  All callers
>> 	changed.  Modified code to match new data structures.
>> 	(build_def_use): Return a list of du_head structures.  Modified code
>> 	to match new data structures.
>> 	(dump_def_use_chain): Accept du_head argument, not du_chain.  All
>> 	callers changed.  Modified code to match new data structures.
>> 	(merge_overlapping_regs): Accept du_head argument, not du_chain.  All
>> 	callers changed.  Modified code to match new data structures.
>> 	(scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
>> 	Allocate a du_head structure as well as a du_chain when creating a
>> 	new chain.  Modified other code to match new data structures.
> 
> OK with the trailing spaces removed in
[...]

Thanks, committed now (vacation got in the way).  I'll post a followup
patch as well which takes care of the remaining performance problem.


Bernd
-- 
This footer brought to you by insane German lawmakers.
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif


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