[Pcre-svn] [736] code/trunk/src/pcre2_jit_compile.c: Enablin…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [736] code/trunk/src/pcre2_jit_compile.c: Enabling valgrind disables SSE2 in JIT.
Revision: 736
          http://www.exim.org/viewvc/pcre2?view=rev&revision=736
Author:   zherczeg
Date:     2017-04-07 12:06:56 +0100 (Fri, 07 Apr 2017)
Log Message:
-----------
Enabling valgrind disables SSE2 in JIT.


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


Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c    2017-04-07 08:46:29 UTC (rev 735)
+++ code/trunk/src/pcre2_jit_compile.c    2017-04-07 11:06:56 UTC (rev 736)
@@ -4176,7 +4176,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(PCRE2_UCHAR chr)
 {
@@ -4486,6 +4486,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);
@@ -4499,7 +4500,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. */