Use AVX2 for bitmap intersection stores - #554
Open
perfloop-agent wants to merge 2 commits into
Open
Conversation
perfloop-agent
force-pushed
the
perfloop-pr-open-hqz9bvazg7
branch
from
August 28, 2026 13:35
f60d87c to
64d4d28
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Use AVX2 to materialize bitmap-container AND results on amd64 CPUs that do not use the AVX-512 bitmap-operation path.
Type of Change
Changes Made
What was changed?
Why was it changed?
How was it changed?
dst; retain scalar tails and generic, appengine, and non-amd64 fallbacks.Testing
go test ./...go test -tags appengine .Checks: 2 passed.
Performance Impact
The AVX2 fallback processes four words per iteration. The fused helper combines AND, population count, and store for in-place bitmap intersections. The change does not alter allocation or container-representation decisions; unsupported targets keep the existing scalar path.
Workload:
dense_bitmap_and_avx2_fallbackns/opBreaking Changes
None.
Additional Notes
This complements the AVX-512 bitmap word operations; AVX-512 remains the preferred path.
Generated by Perfloop. Measurements and checks.