From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAetv-0007ix-Dp for qemu-devel@nongnu.org; Mon, 23 Jun 2008 01:47:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAett-0007hY-ND for qemu-devel@nongnu.org; Mon, 23 Jun 2008 01:47:38 -0400 Received: from [199.232.76.173] (port=41779 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAett-0007hK-8U for qemu-devel@nongnu.org; Mon, 23 Jun 2008 01:47:37 -0400 Received: from savannah.gnu.org ([199.232.41.3]:43113 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAets-0008Es-JK for qemu-devel@nongnu.org; Mon, 23 Jun 2008 01:47:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KAetM-00083J-P9 for qemu-devel@nongnu.org; Mon, 23 Jun 2008 05:47:04 +0000 Received: from malc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KAetM-00083D-3e for qemu-devel@nongnu.org; Mon, 23 Jun 2008 05:47:04 +0000 MIME-Version: 1.0 Errors-To: malc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: malc Message-Id: Date: Mon, 23 Jun 2008 05:47:04 +0000 Subject: [Qemu-devel] [4778] Shuffle contents of tcg_target_reg_alloc_order Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4778 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4778 Author: malc Date: 2008-06-23 05:47:03 +0000 (Mon, 23 Jun 2008) Log Message: ----------- Shuffle contents of tcg_target_reg_alloc_order Move reserved/volatile registers down. Currently qemu_ld/stXX are marked with TCG_OPF_CALL_CLOBBER and since memory accesses are frequent and R3 through R12 are volatile moving this down results in less spills and tighter generated code. Modified Paths: -------------- trunk/tcg/ppc/tcg-target.c Modified: trunk/tcg/ppc/tcg-target.c =================================================================== --- trunk/tcg/ppc/tcg-target.c 2008-06-22 14:10:45 UTC (rev 4777) +++ trunk/tcg/ppc/tcg-target.c 2008-06-23 05:47:03 UTC (rev 4778) @@ -67,9 +67,20 @@ }; static const int tcg_target_reg_alloc_order[] = { - TCG_REG_R0, - TCG_REG_R1, - TCG_REG_R2, + TCG_REG_R14, + TCG_REG_R15, + TCG_REG_R16, + TCG_REG_R17, + TCG_REG_R18, + TCG_REG_R19, + TCG_REG_R20, + TCG_REG_R21, + TCG_REG_R22, + TCG_REG_R23, + TCG_REG_R28, + TCG_REG_R29, + TCG_REG_R30, + TCG_REG_R31, TCG_REG_R3, TCG_REG_R4, TCG_REG_R5, @@ -81,24 +92,13 @@ TCG_REG_R11, TCG_REG_R12, TCG_REG_R13, - TCG_REG_R14, - TCG_REG_R15, - TCG_REG_R16, - TCG_REG_R17, - TCG_REG_R18, - TCG_REG_R19, - TCG_REG_R20, - TCG_REG_R21, - TCG_REG_R22, - TCG_REG_R23, + TCG_REG_R0, + TCG_REG_R1, + TCG_REG_R2, TCG_REG_R24, TCG_REG_R25, TCG_REG_R26, - TCG_REG_R27, - TCG_REG_R28, - TCG_REG_R29, - TCG_REG_R30, - TCG_REG_R31 + TCG_REG_R27 }; static const int tcg_target_call_iarg_regs[] = {