Skip to content

Cap descriptor width to 64 bytes in FindChild. - #3443

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_991798243
Oct 2, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_991798243

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Cap descriptor width to 64 bytes in FindChild.
previously we were hard capping at 16, that becomes a problem lets say at SVE 2048 bytes, which when capped at 16 lanes and lets say 64 bite keys would give us a capped vector of 16 lanes each containing 64 bit keys thus vector size reaching 128 bytes.
and we do Load(d, internal->keys + i) below, for this to be safe the ptr has to be a multiple of vector byte size of d, but internal nodes are only aligned to 64 bytes, thus 64 is not a multiple of 128 , so this Load was unsafe on wider vectors >=1024

previously we were hard capping at 16, that becomes a problem lets say at SVE 2048 bytes, which when capped at 16 lanes and lets say 64 bite keys would give us a capped vector of 16 lanes each containing 64 bit keys thus vector size reaching 128 bytes.
and we do Load(d, internal->keys + i) below, for this to be safe the ptr has to be a multiple of vector byte size of d, but internal nodes are only aligned to 64 bytes, thus 64 is not a multiple of 128 , so this Load was unsafe on wider vectors >=1024

PiperOrigin-RevId: 992242309
@copybara-service
copybara-service Bot merged commit 741eaa5 into master Oct 2, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_991798243 branch October 2, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant