[Pcre-svn] [1695] code/trunk/pcre_jit_compile.c: Enabling va…

Inizio della pagina
Delete this message
Autore: Subversion repository
Data:  
To: pcre-svn
Oggetto: [Pcre-svn] [1695] code/trunk/pcre_jit_compile.c: Enabling valgrind disables SSE2 in JIT.
Revision: 1695
          http://vcs.pcre.org/viewvc?view=rev&revision=1695
Author:   zherczeg
Date:     2017-04-07 11:59:09 +0100 (Fri, 07 Apr 2017)
Log Message:
-----------
Enabling valgrind disables SSE2 in JIT.


Modified Paths:
--------------
    code/trunk/pcre_jit_compile.c


Modified: code/trunk/pcre_jit_compile.c
===================================================================
--- code/trunk/pcre_jit_compile.c    2017-04-03 13:27:22 UTC (rev 1694)
+++ code/trunk/pcre_jit_compile.c    2017-04-07 10:59:09 UTC (rev 1695)
@@ -3865,7 +3865,7 @@
   }
 }


-#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86)
+#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) && !(defined SUPPORT_VALGRIND)

 static sljit_s32 character_to_int32(pcre_uchar chr)
 {
@@ -4175,6 +4175,7 @@
     OP2(SLJIT_SUB | SLJIT_SET_GREATER, SLJIT_UNUSED, 0, STR_END, 0, TMP3, 0);
     sljit_x86_emit_cmov(compiler, SLJIT_GREATER, STR_END, TMP3, 0);
     }
+  else
 #endif
     {
     quit = CMP(SLJIT_LESS_EQUAL, STR_END, 0, TMP3, 0);
@@ -4188,7 +4189,7 @@
   utf_start = LABEL();
 #endif


-#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86)
+#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) && !(defined SUPPORT_VALGRIND)

/* SSE2 accelerated first character search. */