-
Notifications
You must be signed in to change notification settings - Fork 671
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
Conversation
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.
There was a problem hiding this 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)
There was a problem hiding this 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?
compiler/src/iree/compiler/Codegen/Common/GPU/test/gpu_apply_tiling_level.mlir
Show resolved
Hide resolved
That is for folding insert/extract_slice ops into vector transfers. This is for merging |
…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.
…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.
…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.
…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>
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.