Skip to content

[Codegen] Add reshape map_scatter folding to BlockDynamicDimensions - #21047

Merged
Max191 merged 1 commit into
iree-org:mainfrom
Max191-agents:map-scatter-block-dynamic-dims
Jun 10, 2025
Merged

Max191 merged 1 commit into
iree-org:mainfrom
Max191-agents:map-scatter-block-dynamic-dims

Conversation

@Max191

@Max191 Max191 commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

Refactors the map_scatter folding transformations with tensor.collapse_shape and tensor.expand_shape into pattern rewrites, and adds the patterns to the BlockDynamicDimensions pass. This allows the CombineLayoutTransformation pass to be run before BlockDynamicDimensions, without creating additional reshapes in the IR.

@Max191
Max191 requested a review from hanhanW as a code owner June 9, 2025 01:23
@Max191
Max191 force-pushed the map-scatter-block-dynamic-dims branch from ef54571 to cb34c42 Compare June 9, 2025 01:27
@Max191
Max191 merged commit f7f7ea8 into iree-org:main Jun 10, 2025
@Max191
Max191 deleted the map-scatter-block-dynamic-dims branch June 10, 2025 17:07
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
…21047)

Refactors the map_scatter folding transformations with
tensor.collapse_shape and tensor.expand_shape into pattern rewrites, and
adds the patterns to the BlockDynamicDimensions pass. This allows the
CombineLayoutTransformation pass to be run before
BlockDynamicDimensions, without creating additional reshapes in the IR.

Signed-off-by: Max Dawkins <[email protected]>
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