Skip to content

SSA-CFG: Add pass to simplify negated conditions#16679

Draft
blishko wants to merge 1 commit into
developfrom
ssa-jump-condition-simplifier
Draft

SSA-CFG: Add pass to simplify negated conditions#16679
blishko wants to merge 1 commit into
developfrom
ssa-jump-condition-simplifier

Conversation

@blishko
Copy link
Copy Markdown
Contributor

@blishko blishko commented May 6, 2026

When a jump condition is a boolean negation (iszero), we can remove the negation and swap the zero and non-zero successors.

This commit just adds the pass, but does not run it yet.

@blishko blishko force-pushed the ssa-jump-condition-simplifier branch from fa40814 to 3188b5c Compare May 6, 2026 15:17
@blishko blishko marked this pull request as draft May 6, 2026 15:18
@blishko blishko force-pushed the ssa-jump-condition-simplifier branch from 3188b5c to 680bea0 Compare May 6, 2026 15:20
When a jump condition is a boolean negation (`iszero`), we can
remove the negation and swap the zero and non-zero successors.

This commit just adds the pass, but does not run it yet.
@blishko blishko force-pushed the ssa-jump-condition-simplifier branch from 680bea0 to b1d869f Compare May 6, 2026 18:52
@blishko blishko requested a review from clonker May 6, 2026 18:53
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