Browse Source

add the x86-64 memset optimizations to the ChangeLog

pull/5/head
Jakob Löw 7 years ago
parent
commit
2904804a1f
  1. 7
      ChangeLog
  2. 4
      jit/jit-rules-x86-64.c

7
ChangeLog

@ -1,3 +1,10 @@
2017-10-01 Jakob Löw <jakob@m4gnus.de>
* jit/jit-gen-x86-64.h: add the movlhps and movhlps instructions
* jit/jit-rules-x86-64.ins
* jit/jit-rules-x86-64.c: Inline memset instructions when value and size
are known during compilation.
2017-08-28 Aleksey Demakov <ademakov@gmail.com> 2017-08-28 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-value.c (jit_value_create_long_constant): on 64-bit * jit/jit-value.c (jit_value_create_long_constant): on 64-bit

4
jit/jit-rules-x86-64.c

@ -2742,13 +2742,13 @@ memory_copy(jit_gencode_t gen, unsigned char *inst,
static unsigned char * static unsigned char *
small_block_set(jit_gencode_t gen, unsigned char *inst, small_block_set(jit_gencode_t gen, unsigned char *inst,
int dreg, jit_nint doffset, int dreg, jit_nint doffset,
jit_nint val, jit_nint size, jit_nuint val, jit_nint size,
int scratch_reg, int scratch_xreg, int scratch_reg, int scratch_xreg,
int is_aligned, int use_sse) int is_aligned, int use_sse)
{ {
jit_nint offset = 0; jit_nint offset = 0;
if(val == 0) if(val & 0xff == 0)
{ {
if(!use_sse || size % 16 != 0) if(!use_sse || size % 16 != 0)
{ {

Loading…
Cancel
Save