8000 [Codegen] Drop read_only from LoadFromMemrefOp. by hanhanW · Pull Request #20693 · iree-org/iree · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Codegen] Drop read_only from LoadFromMemrefOp. #20693

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

hanhanW
Copy link
Contributor
@hanhanW hanhanW commented Apr 30, 2025

The operand was added for bufferization, which is not used in the implementation. The revision drops the unused argument.

Signed-off-by: hanhanW <hanhan0912@gmail.com>
@hanhanW hanhanW requested a review from Max191 April 30, 2025 22:04
@krzysz00
Copy link
Contributor
krzysz00 commented May 1, 2025

I kinda want to keep a marker of read only somewhere so we can shove !invariant.load onto things

@MaheshRavishankar
Copy link
Contributor

I kinda want to keep a marker of read only somewhere so we can shove !invariant.load onto things

We need to keep a single source of truth of where the read only information comes. It would be very easy for things to be out of sync.

@hanhanW
Copy link
Contributor Author
hanhanW commented May 1, 2025

I kinda want to keep a marker of read only somewhere so we can shove !invariant.load onto things

In the current use cases, you can always track the SSA chain back to bindings and figure it out. Unless you have a different use case, we don't need this at all.

We need to keep a single source of truth of where the read only information comes. It would be very easy for things to be out of sync.

Mahesh also has a valid concern.

Copy link
Contributor
@Max191 Max191 left a comment

Choose a reason for hiding this comment

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

Thanks for getting rid of this!

@hanhanW hanhanW merged commit 1909bea into iree-org:main May 1, 2025
42 checks passed
@hanhanW hanhanW deleted the retire-read-only branch May 1, 2025 17:49
nirvedhmeshram pushed a commit that referenced this pull request May 6, 2025
The operand was added for bufferization, which is not used in the
implementation. The revision drops the unused argument.

Signed-off-by: hanhanW <hanhan0912@gmail.com>
KyleHerndon pushed a commit to KyleHerndon/iree that referenced this pull request May 7, 2025
The operand was added for bufferization, which is not used in the
implementation. The revision drops the unused argument.

Signed-off-by: hanhanW <hanhan0912@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.

4 participants
0