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]

Move reg_equiv_* into a single structure



IRA & reload share a variety of reg_equiv_XXX arrays. My reload-v2 work sits between IRA & reload and needs to grow those arrays as new pseudos are created for split ranges.


Right now I have to grow each array separately. It works, but I find it rather ugly. I also find it to be a major pain to get state for a single pseudo in gdb... ie:

p reg_equiv_init[153]
p reg_equiv_constant[153]
p reg_equiv_address[153]
p reg_equiv_invariant[153]
p reg_equiv_memory_loc[153]
....


This patch takes those objects and puts them into structure and creates an array of those structures indexed by pseudo #. So there's only one array to grow if a new pseudo is introduced and to get the equivalency state of a pseudo we can just do


p reg_equivs[153]

Bootstrapped and regression tested on x86_64-unknown-linux-gnu. OK?

Thanks,
Jeff

Attachment: PP
Description: Text document


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