Skip to content

fix(util): avoid an unused Mumbling lookup function on SSE2 builds - #1188

Open
zhjwpku wants to merge 1 commit into
apache:mainfrom
zhjwpku:fix/mumbling-swar-build
Open

zhjwpku wants to merge 1 commit into
apache:mainfrom
zhjwpku:fix/mumbling-swar-build

Conversation

@zhjwpku

@zhjwpku zhjwpku commented Nov 28, 2026

Copy link
Copy Markdown
Member

The Mumbling reader added in #1126 selects the SSE2 lookup on x86-64, but also compiles the unused portable ContainsByte32 helper. With -Wall -Werror, Clang rejects mumbling_bitmap.cc with -Wunused-function.

Use the same ICEBERG_MUMBLING_SSE2 condition for the helper definitions as for their call sites, so each build compiles only the implementation it uses.

Testing

  • Compiled with AppleClang and -Wall -Werror for x86-64 with SSE2, x86-64 with ICEBERG_MUMBLING_SSE2=0, and ARM64. Checked membership for 8,704 positions in each configuration.
  • Ran all 24 Mumbling bitmap and PFOR unit tests on ARM64.
  • Ran pre-commit run --all-files.

Codex assisted with the change and local verification.

@xndai

xndai commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

LGTM. How was this missed? Can we look into the pipeline as well and understand why?

@zhjwpku

zhjwpku commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

-Wall -Werror

It seems we have -Werror(set by COMPILE_WARNING_AS_ERROR ON), but no -Wall or -Wunused-function.

@zhjwpku

zhjwpku commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

LGTM. How was this missed? Can we look into the pipeline as well and understand why?

I create a separate PR(#1189) to add -Wall, let's see how it works.

@zhjwpku
zhjwpku requested a review from wgtmac November 29, 2026 02:56

This branch has not been deployed

No deployments
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.

2 participants