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

[Verif] Mark SymbolicValueOp result as MemAlloc #8208

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

fabianschuiki
Copy link
Contributor

Add the MemAlloc side effect to the result of verif.symbolic_value. This allows the canonicalizer to delete the op if it has no users while still preventing CSE from mergin multiple symbolic values.

Also add a few placeholders to the lower-contracts.mlir test to make it more robust.

@fabianschuiki fabianschuiki force-pushed the fschuiki/circt-test-contracts branch from 0a6b003 to 96404fa Compare February 7, 2025 23:35
@fabianschuiki fabianschuiki force-pushed the fschuiki/symbolic-value-mem-alloc branch from 50e4b52 to 71fcaab Compare February 7, 2025 23:35
Copy link
Member

@dobios dobios left a comment

Choose a reason for hiding this comment

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

Nice! This is a great idea!! Thanks!!!

Base automatically changed from fschuiki/circt-test-contracts to main February 8, 2025 00:39
Add the `MemAlloc` side effect to the result of `verif.symbolic_value`.
This allows the canonicalizer to delete the op if it has no users while
still preventing CSE from mergin multiple symbolic values.

Also add a few placeholders to the `lower-contracts.mlir` test to make
it more robust.
@fabianschuiki fabianschuiki force-pushed the fschuiki/symbolic-value-mem-alloc branch from 71fcaab to 74b5d7c Compare February 10, 2025 21:00
@fabianschuiki fabianschuiki merged commit b1cae94 into main Feb 10, 2025
5 checks passed
@fabianschuiki fabianschuiki deleted the fschuiki/symbolic-value-mem-alloc branch February 10, 2025 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants