HomeFreeBSD

pmap: Micro-optimize pmap_remove_pages() on amd64 and arm64

Description

pmap: Micro-optimize pmap_remove_pages() on amd64 and arm64

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.

Reviewed by: kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31161

Details

Provenance
alcAuthored on Jul 12 2021, 11:25 PM
Reviewer
kib
Differential Revision
D31161: Micro-optimize pmap_remove_pages() on amd64 and arm64
Parents
rG4a9a41650c90: uart: Fix an out-of-bounds read in ns8250_bus_probe()
Branches
Unknown
Tags
Unknown