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: Question about Register Class Allocation


"Balaji V. Iyer" <bviyer@ncsu.edu> writes:

>     I saw that regclass() function determines which class of register
> the registers in the current units should be assigned to. The question I
> have is: Will this decision change in any other parts of the compiler?
> or is this this the final place where they fix the register class? So,
> if I add my own priority-based register-class assigner, can I just
> replace this function and add my own?

regclass sets preferences.  Those preferences will not change later.
The register allocator will honor those preferences if possible.
However, it is not required to honor them.  It is only required to
honor the constraints in the MD file.

Ian


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