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

FuseWithConstantArray on ExtractValueOp always returns success() #2196

Open
amccaskey opened this issue Sep 6, 2024 · 0 comments
Open

FuseWithConstantArray on ExtractValueOp always returns success() #2196

amccaskey opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@amccaskey
Copy link
Collaborator

FuseWithConstantArray::matchAndRewrite is returning success even if no canonicalization is applied. I'm not 100% sure, but I think that final return statement should be a return failure();. I noticed this when I tried to add more canonicalization patterns for ExtractValueOp and they would not run, and my guess was that it was because the first pass, FuseWithConstantArray was always returning success.

@amccaskey amccaskey added the bug Something isn't working label Sep 6, 2024
schweitzpgi added a commit to schweitzpgi/cuda-quantum that referenced this issue Sep 6, 2024
Canonicalization patterns should return failure if they don't modify the
IR.
schweitzpgi added a commit to schweitzpgi/cuda-quantum that referenced this issue Sep 6, 2024
Canonicalization patterns should return failure if they don't modify the
IR.
schweitzpgi added a commit that referenced this issue Sep 7, 2024
Canonicalization patterns should return failure if they don't modify the
IR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants