Drop invalid "in-bounds" GEP for constant offsets by alexreinking · Pull Request #8768 · halide/Halide · GitHub
Skip to content

Drop invalid "in-bounds" GEP for constant offsets#8768

Merged
abadams merged 4 commits into
mainfrom
bugfix/indexing_access_undef
Aug 27, 2025
Merged

Drop invalid "in-bounds" GEP for constant offsets#8768
abadams merged 4 commits into
mainfrom
bugfix/indexing_access_undef

Conversation

@alexreinking

Copy link
Copy Markdown
Member

This GEP was not in fact guaranteed to be in-bounds. This was discovered by a failure in the WASM version of correctness_indexing_access_undef after a change to LLVM's LICM declined to hoist part of the computation.

LLVM reference: llvm/llvm-project#151492

Drive-by cleanup in test/generator/CMakeLists.txt.

Fixes #8766

This GEP was not in fact guaranteed to be in-bounds. This was discovered by a failure in the WASM version of correctness_indexing_access_undef after a change to LLVM's LICM declined to hoist part of the computation.

LLVM reference: llvm/llvm-project#151492
@alexreinking

alexreinking commented Aug 20, 2025

Copy link
Copy Markdown
Member Author

@abadams

abadams commented Aug 20, 2025

Copy link
Copy Markdown
Member

@abadams abadams merged commit 3e1e028 into main Aug 27, 2025
11 of 19 checks passed
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.

Failing test: correctness_indexing_access_undef

2 participants