Skip to content

[Arc] Remove optional enable operands of MemoryWriteOp and StateWriteOp#10411

Open
fzi-hielscher wants to merge 2 commits intollvm:mainfrom
fzi-hielscher:arc-remove-writeen
Open

[Arc] Remove optional enable operands of MemoryWriteOp and StateWriteOp#10411
fzi-hielscher wants to merge 2 commits intollvm:mainfrom
fzi-hielscher:arc-remove-writeen

Conversation

@fzi-hielscher
Copy link
Copy Markdown
Contributor

Remove the unused enable operand of MemoryWriteOp and the condition operand of StateWriteOp. Both are optional and never set during lowering. They are mostly redundant as LowerState will guard the writes with an scf IfOp when necessary.

Closes #10408 .

@fzi-hielscher fzi-hielscher added the Arc Involving the `arc` dialect label May 7, 2026
Copy link
Copy Markdown
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM! Net-negative line diff 😍 Thanks for getting rid of unusude code! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arc Involving the `arc` dialect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Arc][InsertRuntime] Trace instrumentation ignores optional state write disable

2 participants