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

Canonicalize const ifs #2580

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Canonicalize const ifs #2580

wants to merge 2 commits into from

Conversation

annagrin
Copy link
Collaborator

@annagrin annagrin commented Feb 3, 2025

Description

Canonicalize const ifs

Example:

    cc.if(%true) {
      %6 = quake.extract_ref %0[0] : (!quake.veq<2>) -> !quake.ref
      quake.x %6 : (!quake.ref) -> ()
    }

Should be converted to

      %6 = quake.extract_ref %0[0] : (!quake.veq<2>) -> !quake.ref
      quake.x %6 : (!quake.ref) -> ()

Update: this change affects too many tests. I am planning to just add the pattern in question to LoopUnroll for now in a next PR

@annagrin annagrin requested a review from schweitzpgi February 3, 2025 19:54
@annagrin annagrin marked this pull request as draft February 3, 2025 20:46
github-actions bot pushed a commit that referenced this pull request Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

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

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