[llvm-commits] [PATCH] Enable use of SPARC g2-g4 global registers

Martin Whitaker mailing-list at martin-whitaker.me.uk
Mon Jul 11 12:24:55 PDT 2011


This patch adds a SPARC code generator feature that allows the code generator 
to optionally use the global registers that are reserved for application use 
by the SPARC ABI (g2,g3,g4).

It also changes the preferred register allocation order to give preference to 
the global and input registers, to increase the chances of being able to 
eliminate the frame save/restore in leaf functions (when that optimisation is 
added). I'm doing this now because it also makes the regression test for this 
patch simpler (and less likely to break in the future).

Please review.

Martin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Enable-use-of-SPARC-g2-g4-global-registers.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110711/af409f62/attachment.ksh>


More information about the llvm-commits mailing list