HomeFreeBSD

Provide workaround for a performance issue with the popcnt instruction

Description

Provide workaround for a performance issue with the popcnt instruction
on Intel processors. Clear spurious dependency by explicitely xoring
the destination register of popcnt.

Use bitcount64() instead of re-implementing SWAR locally, for
processors without popcnt instruction.

Reviewed by: jhb
Discussed with: jilles (previous version)
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on
Reviewer
jhb
Parents
rS280879: Add bits for building EC2 disk images. Make logic for uploading these
Branches
Unknown
Tags
Unknown

Event Timeline