Skip to content
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

[PromoteToL1] Fix dominance bug #117

Merged
merged 2 commits into from
Aug 19, 2024
Merged

[PromoteToL1] Fix dominance bug #117

merged 2 commits into from
Aug 19, 2024

Conversation

zero9178
Copy link
Member

The pass would previously create invalid IR by always replacing a tensor value with the promoted tensor despite its insertion point being before a compute operation. If another operation before the compute operation would have a use of the tensor it'd get replaced despite being illegal.

The fix is to simply not replace the value of the tensor but rather the operand use. CSE should clean up any redundancy.

The pass would previously create invalid IR by always replacing a tensor value with the promoted tensor despite its insertion point being before a compute operation. If another operation before the compute operation would have a use of the tensor it'd get replaced despite being illegal.

The fix is to simply not replace the value of the tensor but rather the operand use. CSE should clean up any redundancy.
@zero9178 zero9178 merged commit 4f03746 into main Aug 19, 2024
1 check passed
@zero9178 zero9178 deleted the promote-bug-fix branch August 19, 2024 12:49
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