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

Run canonical patterns alongside lift-array-alloc #2601

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

annagrin
Copy link
Collaborator

@annagrin annagrin commented Feb 9, 2025

Description

Run canonical patterns alongside lift-array-alloc to make sure all constant arrays are lifted in case of array copy:

arr = [0]
arr1 = [arr[0]]
return arr[0] == arr1[0]

Previously, we would need to run two iterations of lift-array-alloc,canonicalize to lift both arrays, as the first one needs to be lifted and then const-propped before the second one could be lifted as well.

Copy link

github-actions bot commented Feb 9, 2025

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Feb 9, 2025
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