Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GPU] Set insertion point to last slice index operand in reshape and slice fusion #19959

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

Max191
Copy link
Contributor

@Max191 Max191 commented Feb 11, 2025

Empty tensor elimination relies on dominance of SSA values when attempting to reuse buffers for slices of init operands. Ideally, empty tensor elimination should be able to handle this, but it is difficult to fix at that level. For now, this PR tries to avoid creating these dominance issues in the first place.

@Max191 Max191 requested a review from krzysz00 February 12, 2025 15:19
Copy link
Contributor

@krzysz00 krzysz00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with nitpicks

Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
@Max191 Max191 force-pushed the fix-reshape-fusion-insertion-point branch from 0c70796 to 4efa1c8 Compare February 12, 2025 17:12
Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
@Max191 Max191 force-pushed the fix-reshape-fusion-insertion-point branch from 4efa1c8 to 9ee47e7 Compare February 12, 2025 17:13
@Max191 Max191 enabled auto-merge (squash) February 12, 2025 17:16
@Max191 Max191 merged commit d3cfe11 into iree-org:main Feb 12, 2025
40 checks passed
hanhanW pushed a commit to hanhanW/iree that referenced this pull request Feb 13, 2025
…slice fusion (iree-org#19959)

Empty tensor elimination relies on dominance of SSA values when
attempting to reuse buffers for slices of init operands. Ideally, empty
tensor elimination should be able to handle this, but it is difficult to
fix at that level. For now, this PR tries to avoid creating these
dominance issues in the first place.

---------

Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
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