head/sys/amd64/amd64/support.S: unroll loop
unroll the loop in ENTRY(pagezero) acc' to the submitter this results in a reproducible 1% perf improvement under buildworld like workload I validated correctness and run-testing, but not performance impact Submitted by: lidl@pix.net Reviewed by: adrian PR: 199151 MFC After: 1 month
This commit is contained in:
parent
00e2f0a3cb
commit
7e937fbfc2
@ -73,7 +73,11 @@ ENTRY(pagezero)
|
||||
movnti %rax,8(%rdi,%rdx)
|
||||
movnti %rax,16(%rdi,%rdx)
|
||||
movnti %rax,24(%rdi,%rdx)
|
||||
addq $32,%rdx
|
||||
movnti %rax,32(%rdi,%rdx)
|
||||
movnti %rax,40(%rdi,%rdx)
|
||||
movnti %rax,48(%rdi,%rdx)
|
||||
movnti %rax,56(%rdi,%rdx)
|
||||
addq $64,%rdx
|
||||
jne 1b
|
||||
sfence
|
||||
POP_FRAME_POINTER
|
||||
|
Loading…
Reference in New Issue
Block a user