Browse Source

* use regular loads instead of calling MOVE for 1,2,4 and 8-byte sized g_concatcopy

git-svn-id: branches/wasm@48075 -
nickysn 4 years ago
parent
commit
af9cc646a9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/wasm32/hlcgcpu.pas

+ 2 - 1
compiler/wasm32/hlcgcpu.pas

@@ -1220,7 +1220,8 @@ implementation
       if (source.base=NR_EVAL_STACK_BASE) or (source.base=NR_LOCAL_STACK_POINTER_REG) or
          (source.index=NR_EVAL_STACK_BASE) or (source.index=NR_LOCAL_STACK_POINTER_REG) or
          (dest.base=NR_EVAL_STACK_BASE) or (dest.base=NR_LOCAL_STACK_POINTER_REG) or
-         (dest.index=NR_EVAL_STACK_BASE) or (dest.index=NR_LOCAL_STACK_POINTER_REG) then
+         (dest.index=NR_EVAL_STACK_BASE) or (dest.index=NR_LOCAL_STACK_POINTER_REG) or
+         (size.size in [1,2,4,8]) then
         inherited
       else
         begin