Skip to content

Commit

Permalink
internal/lz4block: Remove unused loop from arm64 decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
greatroar committed Feb 7, 2022
1 parent 947bcf2 commit 1cbdd81
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/lz4block/decode_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,6 @@ copyMatchLoop8:
MOVD tmp2, -8(dst)
B copyMatchDone

// 4× unrolled byte copy loop for the overlapping case.
copyMatchLoop4:
SUB $4, len
MOVBU.P 4(match), tmp1
MOVB.P tmp1, 4(dst)
MOVBU -3(match), tmp2
MOVB tmp2, -3(dst)
MOVBU -2(match), tmp3
MOVB tmp3, -2(dst)
MOVBU -1(match), tmp4
MOVB tmp4, -1(dst)
CBNZ len, copyMatchLoop4

copyMatchLoop1:
// Finish with a byte-at-a-time copy.
SUB $1, len
Expand Down

0 comments on commit 1cbdd81

Please sign in to comment.