Skip to content

Conversation

@Hardcode84
Copy link
Contributor

@Hardcode84 Hardcode84 commented Sep 2, 2025

Move gather/scatter decomposition into dedicated pass. This allows to cleanup a lot of code in read/write handlers and get rid of last traces of vector.gather/scatter there.

@Hardcode84 Hardcode84 force-pushed the partititon-gathers branch 2 times, most recently from ab400b1 to 42a5386 Compare September 8, 2025 17:27
@Hardcode84 Hardcode84 changed the title [WIP] Add a dedicated pass to partition gathers/scatters Add a dedicated pass to partition gathers/scatters Sep 8, 2025
@Hardcode84 Hardcode84 force-pushed the partititon-gathers branch 2 times, most recently from 814686b to f63235c Compare September 9, 2025 14:44
Copy link
Collaborator

@harsh-nod harsh-nod left a comment

Choose a reason for hiding this comment

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

this should be a nice cleanup. thanks!

elements_per_thread=1,
).add_to_graph(custom.graph)
elif isinstance(custom, Read):
# TODO: Add support on how to handle strided reads.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why won't the existing code handle strided reads? And what about strides writes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was a stale comment, removed

Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
@Hardcode84 Hardcode84 merged commit 1c50d27 into iree-org:main Sep 16, 2025
11 of 13 checks passed
@Hardcode84 Hardcode84 deleted the partititon-gathers branch September 16, 2025 15:37
Megan0704-1 pushed a commit to Megan0704-1/wave that referenced this pull request Oct 28, 2025
Move gather/scatter decomposition into dedicated pass. This allows to
cleanup a lot of code in read/write handlers and get rid of last traces
of `vector.gather`/`scatter` there.

---------

Signed-off-by: Ivan Butygin <ivan.butygin@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