Skip to content

[Dispatch Creation] Improve extract_slice expand_shape bubbling - #21121

Merged
IanWood1 merged 2 commits into
iree-org:mainfrom
IanWood1:improve_extract_slice_bubbling
Jun 19, 2025
Merged

IanWood1 merged 2 commits into
iree-org:mainfrom
IanWood1:improve_extract_slice_bubbling

Conversation

@IanWood1

@IanWood1 IanWood1 commented Jun 18, 2025 •

Copy link
Copy Markdown
Member

Extends the pattern to handle rank reducing extract_slices as well instances where the expand_shape contains but doesn't expand any dynamic dimensions. This is useful to improve fusion (by cloning the slice) and prevent the extract_slice from materializing to a slow memcpy.

Closes #21015

@IanWood1
IanWood1 marked this pull request as ready for review June 18, 2025 16:23
@IanWood1
IanWood1 requested a review from Groverkss June 18, 2025 16:23
@IanWood1
IanWood1 merged commit 5bc18b5 into iree-org:main Jun 19, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Extends the pattern to handle rank reducing `extract_slice`s as well
instances where the `expand_shape` contains but doesn't expand any
dynamic dimensions. This is useful to improve fusion (by cloning the
slice) and prevent the `extract_slice` from materializing to a slow
memcpy.

Closes #21015

---------

Signed-off-by: Ian Wood <[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.

[DispatchCreation] Improve BubbleExpandThroughExtract

3 participants