[Pcre-svn] [964] code/trunk/src/pcre2_jit_compile.c: Minor t…

Página superior
Eliminar este mensaje
Autor: Subversion repository
Fecha:  
A: pcre-svn
Asunto: [Pcre-svn] [964] code/trunk/src/pcre2_jit_compile.c: Minor tweak ( may give minor performance improvement) to JIT UCD handling.
Revision: 964
          http://www.exim.org/viewvc/pcre2?view=rev&revision=964
Author:   ph10
Date:     2018-07-14 18:00:17 +0100 (Sat, 14 Jul 2018)
Log Message:
-----------
Minor tweak (may give minor performance improvement) to JIT UCD handling.


Modified Paths:
--------------
    code/trunk/src/pcre2_jit_compile.c


Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c    2018-07-14 16:16:51 UTC (rev 963)
+++ code/trunk/src/pcre2_jit_compile.c    2018-07-14 17:00:17 UTC (rev 964)
@@ -3666,7 +3666,7 @@
 #endif


OP2(SLJIT_LSHR, TMP2, 0, TMP1, 0, SLJIT_IMM, UCD_BLOCK_SHIFT);
-OP2(SLJIT_ADD, TMP2, 0, TMP2, 0, TMP2, 0);
+OP2(SLJIT_SHL, TMP2, 0, TMP2, 0, SLJIT_IMM, 1);
OP1(SLJIT_MOV_U16, TMP2, 0, SLJIT_MEM1(TMP2), (sljit_sw)PRIV(ucd_stage1));
OP2(SLJIT_AND, TMP1, 0, TMP1, 0, SLJIT_IMM, UCD_BLOCK_MASK);
OP2(SLJIT_SHL, TMP2, 0, TMP2, 0, SLJIT_IMM, UCD_BLOCK_SHIFT);
@@ -6628,7 +6628,7 @@
#endif

OP2(SLJIT_LSHR, TMP2, 0, TMP1, 0, SLJIT_IMM, UCD_BLOCK_SHIFT);
- OP2(SLJIT_ADD, TMP2, 0, TMP2, 0, TMP2, 0);
+ OP2(SLJIT_SHL, TMP2, 0, TMP2, 0, SLJIT_IMM, 1);
OP1(SLJIT_MOV_U16, TMP2, 0, SLJIT_MEM1(TMP2), (sljit_sw)PRIV(ucd_stage1));
OP2(SLJIT_AND, TMP1, 0, TMP1, 0, SLJIT_IMM, UCD_BLOCK_MASK);
OP2(SLJIT_SHL, TMP2, 0, TMP2, 0, SLJIT_IMM, UCD_BLOCK_SHIFT);