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

Fix to partial evaluation generating branch instructions on constant conditions #1963

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

cesarzc
Copy link
Contributor

@cesarzc cesarzc commented Oct 14, 2024

RCA can categorize an expression as dynamic even if it is in fact purely classical. This can happen in cases where a data structure such an array, tuple or UDT contains a mix of static and dynamic values. In such instances, RCA identifies all the contents of the data structure as dynamic even if some values are static. This causes partial evaluation to generate branch instructions on constant conditions under certain circumstances. This change fixes this issue.

@cesarzc cesarzc marked this pull request as ready for review October 14, 2024 23:11
@cesarzc cesarzc added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit d14d6c2 Oct 15, 2024
18 checks passed
@cesarzc cesarzc deleted the cesarzc/branch-on-constant-fix branch October 15, 2024 23:01
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.

3 participants