Skip to content

Avoid unnecessary phi#35

Merged
tancheng merged 1 commit intomainfrom
avoid_unnecessary_phi
Jun 15, 2025
Merged

Avoid unnecessary phi#35
tancheng merged 1 commit intomainfrom
avoid_unnecessary_phi

Conversation

@tancheng
Copy link
Copy Markdown
Contributor

When a block has only a single predecessor block, we don't actually need a phi node. This PR avoids inserting phi node with single operand.

@tancheng tancheng self-assigned this Jun 15, 2025
@tancheng tancheng linked an issue Jun 15, 2025 that may be closed by this pull request
@tancheng tancheng added the new feature New feature or request label Jun 15, 2025
@tancheng tancheng force-pushed the avoid_unnecessary_phi branch from f993883 to 882ac5b Compare June 15, 2025 15:39
@tancheng tancheng merged commit 64e7b35 into main Jun 15, 2025
1 check passed
ShangkunLi pushed a commit that referenced this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P1] A canonicalization pass

2 participants