[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 24/34: Remove unused jit_{gpr,fpr}_is_callee_save
From: |
Andy Wingo |
Subject: |
[Guile-commits] 24/34: Remove unused jit_{gpr,fpr}_is_callee_save |
Date: |
Mon, 20 May 2019 09:55:54 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 0da87968d1444b5708d4855f0a6ace3837c50d4b
Author: Andy Wingo <address@hidden>
Date: Fri May 17 10:59:05 2019 +0200
Remove unused jit_{gpr,fpr}_is_callee_save
---
lightening/aarch64.h | 15 ---------------
lightening/x86.h | 48 ------------------------------------------------
2 files changed, 63 deletions(-)
diff --git a/lightening/aarch64.h b/lightening/aarch64.h
index 13a0f1c..0e675a9 100644
--- a/lightening/aarch64.h
+++ b/lightening/aarch64.h
@@ -89,21 +89,6 @@
#define _D30 JIT_FPR(30)
#define _D31 JIT_FPR(31)
-static inline jit_bool_t
-jit_gpr_is_callee_save (jit_gpr_t reg)
-{
- // x19 to x28 are callee-save, x29 is the frame pointer, and x30 is
- // the link register.
- return 19 <= jit_gpr_regno (reg) && jit_gpr_regno (reg) <= 30;
-}
-
-static inline jit_bool_t
-jit_fpr_is_callee_save (jit_fpr_t reg)
-{
- // v8 to v15 are callee-save.
- return 8 <= jit_fpr_regno (reg) && jit_fpr_regno (reg) <= 15;
-}
-
#define JIT_R0 _X0
#define JIT_R1 _X1
#define JIT_R2 _X2
diff --git a/lightening/x86.h b/lightening/x86.h
index 6474903..64ee006 100644
--- a/lightening/x86.h
+++ b/lightening/x86.h
@@ -73,54 +73,6 @@
# define _XMM15 JIT_FPR(15)
#endif
-static inline jit_bool_t
-jit_gpr_is_callee_save (jit_gpr_t reg)
-{
-#if __X32
- return jit_same_gprs (reg, _RBX) ||
- jit_same_gprs (reg, _RBP) ||
- jit_same_gprs (reg, _RSI) ||
- jit_same_gprs (reg, _RDI);
-#elif __CYGWIN__
- return jit_same_gprs (reg, _RBX) ||
- jit_same_gprs (reg, _RBP) ||
- jit_same_gprs (reg, _RSI) ||
- jit_same_gprs (reg, _RDI) ||
- jit_same_gprs (reg, _R12) ||
- jit_same_gprs (reg, _R13) ||
- jit_same_gprs (reg, _R14) ||
- jit_same_gprs (reg, _R15);
-#else
- return jit_same_gprs (reg, _RBX) ||
- jit_same_gprs (reg, _RBP) ||
- jit_same_gprs (reg, _R12) ||
- jit_same_gprs (reg, _R13) ||
- jit_same_gprs (reg, _R14) ||
- jit_same_gprs (reg, _R15);
-#endif
-}
-
-static inline jit_bool_t
-jit_fpr_is_callee_save (jit_fpr_t reg)
-{
-#if __X32
- return 0;
-#elif __CYGWIN__
- return jit_same_fprs (reg, _XMM6) ||
- jit_same_fprs (reg, _XMM7) ||
- jit_same_fprs (reg, _XMM8) ||
- jit_same_fprs (reg, _XMM9) ||
- jit_same_fprs (reg, _XMM10) ||
- jit_same_fprs (reg, _XMM11) ||
- jit_same_fprs (reg, _XMM12) ||
- jit_same_fprs (reg, _XMM13) ||
- jit_same_fprs (reg, _XMM14) ||
- jit_same_fprs (reg, _XMM15);
-#else
- return 0;
-#endif
-}
-
#define JIT_SP _RSP
#if __X32
# define JIT_R0 _RAX
- [Guile-commits] branch master updated (1b98734 -> e057ea0), Andy Wingo, 2019/05/20
- [Guile-commits] 02/34: Refactor some bits from x86 to lightening, Andy Wingo, 2019/05/20
- [Guile-commits] 07/34: Fix GPR temporary selection, Andy Wingo, 2019/05/20
- [Guile-commits] 01/34: Refactor to move temp register acquire to core, Andy Wingo, 2019/05/20
- [Guile-commits] 10/34: Fix a couple bugs related to aarch64 literal pools, Andy Wingo, 2019/05/20
- [Guile-commits] 06/34: Allow a backend to have multiple temporary registers, Andy Wingo, 2019/05/20
- [Guile-commits] 09/34: Fix enter/leave JIT ABI, Andy Wingo, 2019/05/20
- [Guile-commits] 14/34: Fix dpkg --add-architecture invocation, Andy Wingo, 2019/05/20
- [Guile-commits] 16/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 19/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 24/34: Remove unused jit_{gpr,fpr}_is_callee_save,
Andy Wingo <=
- [Guile-commits] 11/34: Aarch64 backend avoids needless temporary register allocation, Andy Wingo, 2019/05/20
- [Guile-commits] 04/34: Refactor to add support for constant tables, shifted relocs, Andy Wingo, 2019/05/20
- [Guile-commits] 34/34: Merge remote-tracking branch 'lightening/master', Andy Wingo, 2019/05/20
- [Guile-commits] 12/34: Remove jit_nop, Andy Wingo, 2019/05/20
- [Guile-commits] 15/34: Fix YAML for CI, Andy Wingo, 2019/05/20
- [Guile-commits] 18/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 17/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 13/34: Add support for aarch64 in CI, Andy Wingo, 2019/05/20
- [Guile-commits] 20/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 21/34: Attempt to fix CI on Debian for AArch64, Andy Wingo, 2019/05/20