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

[XLA:GPU] Remove second run of SortRewriter from the GPU pipeline. #24500

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

copybara-service[bot]
Copy link

[XLA:GPU] Remove second run of SortRewriter from the GPU pipeline.

This second run was possibly meant to rewrite the sorts created by
DynamicPadder. But there are two issues here: We would need to run SortRewriter
before StableSortExpander, and SortRewriter currently doesn't support sorting
pairs where the key is not an unsigned integer.
Add a pass order test to verify that SortRewriter runs before
ComparisonExpander and StableSortExpander, as otherwise we would not match the
expanded patterns.

This second run was possibly meant to rewrite the sorts created by
DynamicPadder. But there are two issues here: We would need to run SortRewriter
before StableSortExpander, and SortRewriter currently doesn't support sorting
pairs where the key is not an unsigned integer.
Add a pass order test to verify that SortRewriter runs before
ComparisonExpander and StableSortExpander, as otherwise we would not match the
expanded patterns.

PiperOrigin-RevId: 743095864
@copybara-service copybara-service bot merged commit 294c9dc into main Apr 2, 2025
@copybara-service copybara-service bot deleted the test_743005885 branch April 2, 2025 12:40
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.

1 participant