Page MenuHomeFreeBSD

Micro-optimize pmap_remove_pages() on amd64 and arm64
ClosedPublic

Authored by alc on Jul 13 2021, 12:06 AM.

Details

Summary

Reduce the live ranges for three variables so that they do not span the call to PHYS_TO_VM_PAGE(). This enables the compiler to generate slightly smaller machine code. Specifically, the machine code is 64 and 68 bytes smaller on amd64 and arm64, respectively.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.