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

Simple case not handles by constantfolding #1275

Open
skrynski opened this issue Apr 3, 2024 · 0 comments
Open

Simple case not handles by constantfolding #1275

skrynski opened this issue Apr 3, 2024 · 0 comments
Labels
pir to be solved in the compiler, the PIR, the optimizer (/compiler)

Comments

@skrynski
Copy link
Collaborator

skrynski commented Apr 3, 2024

This simple case is not handled by constant folding. It creates a Phi instruction that returns 1 on both branches
function(x) { y <- 0; if (x) { y <- 1; } else { y <- 1; }; y }

@skrynski skrynski added the pir to be solved in the compiler, the PIR, the optimizer (/compiler) label Apr 3, 2024
@skrynski skrynski changed the title Simple case not handle by constantfolding Simple case not handles by constantfolding Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pir to be solved in the compiler, the PIR, the optimizer (/compiler)
Projects
None yet
Development

No branches or pull requests

1 participant