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] Use linearize_index op when swapping slice and expand #19730

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

Max191
Copy link
Contributor

@Max191 Max191 commented Jan 17, 2025

This PR replaces the affine.apply used for index computation in SwapExpandShapeWithSlicePattern with an affine.linearize_index op. This is a more canonical form, and will make CSE easier with index computation generated by other similar patterns.

@Max191
Copy link
Contributor Author

Max191 commented Jan 17, 2025

Based on #19729

Edit: rebased now

@Max191 Max191 force-pushed the swap-expand-extract-use-linearize-op branch from 074598c to 27ad63d Compare January 20, 2025 21:16
@Max191 Max191 requested review from hanhanW and krzysz00 January 20, 2025 21:17
@Max191 Max191 force-pushed the swap-expand-extract-use-linearize-op branch from 57204f5 to 0986ee7 Compare January 20, 2025 22:03
@Max191 Max191 force-pushed the swap-expand-extract-use-linearize-op branch from 0986ee7 to a5eacb0 Compare January 21, 2025 15:02
@Max191 Max191 merged commit 21d5db3 into iree-org:main Jan 21, 2025
40 checks passed
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.

4 participants