summaryrefslogtreecommitdiff
path: root/ext/opcache/jit/zend_jit.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2021-03-24 10:36:47 +0300
committerDmitry Stogov <dmitry@zend.com>2021-03-24 10:36:47 +0300
commit3e996622c7846529a094bc33098b53326b97b25f (patch)
tree4fa55be576bc20cd1c65a175a12ae7469dd17cbf /ext/opcache/jit/zend_jit.c
parent5b01c4863fe9e4bc2702b2bbf66d292d23001a18 (diff)
downloadphp-git-3e996622c7846529a094bc33098b53326b97b25f.tar.gz
Replace function with macro
Diffstat (limited to 'ext/opcache/jit/zend_jit.c')
-rw-r--r--ext/opcache/jit/zend_jit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c
index edee5f2573..4e8e089e50 100644
--- a/ext/opcache/jit/zend_jit.c
+++ b/ext/opcache/jit/zend_jit.c
@@ -1510,7 +1510,7 @@ static int zend_jit_try_allocate_free_reg(const zend_op_array *op_array, const z
if (!ZEND_REGSET_IN(*hints, it->reg) &&
/* TODO: Avoid most often scratch registers. Find a better way ??? */
(!current->used_as_hint ||
- !ZEND_REGSET_IN(zend_jit_get_low_priority_regset(), it->reg))) {
+ !ZEND_REGSET_IN(ZEND_REGSET_LOW_PRIORITY, it->reg))) {
hint = it->reg;
}
} else {
@@ -1640,7 +1640,7 @@ static int zend_jit_try_allocate_free_reg(const zend_op_array *op_array, const z
low_priority_regs = *hints;
if (current->used_as_hint) {
/* TODO: Avoid most often scratch registers. Find a better way ??? */
- low_priority_regs = ZEND_REGSET_UNION(low_priority_regs, zend_jit_get_low_priority_regset());
+ low_priority_regs = ZEND_REGSET_UNION(low_priority_regs, ZEND_REGSET_LOW_PRIORITY);
}
ZEND_REGSET_FOREACH(available, i) {