Descriptionruntime: prevent pointless jmp in amd64 and 386 memmove
6a and 8a rearrange memmove such that the fallthrough from move_1or2 to move_0 ends up being a JMP to a RET. Insert an explicit RET to prevent such silliness.
Do the same for memclr as prophylaxis.
benchmark old ns/op new ns/op delta
BenchmarkMemmove1 4.59 4.13 -10.02%
BenchmarkMemmove2 4.58 4.13 -9.83%
Patch Set 1 #Patch Set 2 : diff -r 3f1d9609033c https://code.google.com/p/go #Patch Set 3 : diff -r 3f1d9609033c https://code.google.com/p/go #
Total comments: 2
Patch Set 4 : diff -r b673250d7b72 https://code.google.com/p/go #
MessagesTotal messages: 10
|