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

[Codegen][GPU] Make GPUApplyTilingLevel run cleanup patterns #17533

Merged
merged 1 commit into from
May 31, 2024

Conversation

qedawkins
Copy link
Contributor

This adds a few cleanup patterns to the end of GPUApplyTilingLevel, namely the pattern to merge consecutive insert/extract slices. The pipeline that is intended to use this pass is not sensitive to bufferization the same way and can freely run these patterns to simplify later loop hoisting patterns.

This adds a few cleanup patterns to the end of `GPUApplyTilingLevel`,
namely the pattern to merge consecutive insert/extract slices. The
pipeline that is intended to use this pass is not sensitive to
bufferization the same way and can freely run these patterns to simplify
later loop hoisting patterns.
Copy link
Contributor

@MaheshRavishankar MaheshRavishankar left a comment

Choose a reason for hiding this comment

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

Just a note, some of the insert/extract slice folding has been implicated in a race condition. See #17525 (comment)

Copy link
Contributor

@MaheshRavishankar MaheshRavishankar left a comment

Choose a reason for hiding this comment

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

The lit test seems like it isnt changing anything?

@qedawkins
Copy link
Contributor Author

Just a note, some of the insert/extract slice folding has been implicated in a race condition. See #17525 (comment)

That is for folding insert/extract_slice ops into vector transfers. This is for merging tensor.extract_slice(tensor.extract_slice)

@qedawkins qedawkins merged commit 9edbb34 into iree-org:main May 31, 2024
60 checks passed
@qedawkins qedawkins deleted the cleanup_tiling_application branch May 31, 2024 20:54
gglangg pushed a commit to gglangg/iree that referenced this pull request Jun 4, 2024
…g#17533)

This adds a few cleanup patterns to the end of `GPUApplyTilingLevel`,
namely the pattern to merge consecutive insert/extract slices. The
pipeline that is intended to use this pass is not sensitive to
bufferization the same way and can freely run these patterns to simplify
later loop hoisting patterns.
gglangg pushed a commit to gglangg/iree that referenced this pull request Jun 4, 2024
…g#17533)

This adds a few cleanup patterns to the end of `GPUApplyTilingLevel`,
namely the pattern to merge consecutive insert/extract slices. The
pipeline that is intended to use this pass is not sensitive to
bufferization the same way and can freely run these patterns to simplify
later loop hoisting patterns.
bangtianliu pushed a commit to bangtianliu/iree that referenced this pull request Jun 5, 2024
…g#17533)

This adds a few cleanup patterns to the end of `GPUApplyTilingLevel`,
namely the pattern to merge consecutive insert/extract slices. The
pipeline that is intended to use this pass is not sensitive to
bufferization the same way and can freely run these patterns to simplify
later loop hoisting patterns.
LLITCHEV pushed a commit to LLITCHEV/iree that referenced this pull request Jul 30, 2024
…g#17533)

This adds a few cleanup patterns to the end of `GPUApplyTilingLevel`,
namely the pattern to merge consecutive insert/extract slices. The
pipeline that is intended to use this pass is not sensitive to
bufferization the same way and can freely run these patterns to simplify
later loop hoisting patterns.

Signed-off-by: Lubo Litchev <lubol@google.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.

3 participants