This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question abt getting the number of available registers
- From: Revital Eres <revital dot eres at linaro dot org>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 27 Oct 2011 10:33:12 +0200
- Subject: Question abt getting the number of available registers
Hello,
I'm working on estimating register pressure in SMS and using
ira_available_class_regs for getting the number of available
registers.
However I encounter a case where ira_available_class_regs showed 64
available regs for a certain class while ira_class_hard_regs_num
showed 61 so I am not sure which one I should use. (I'm also not sure
if ira_class_hard_regs_num can be used outside of ira-- if not, I
would need to do that calculation myself)
Thanks,
Revital