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

Basic dead code elimination should apply to reachability computation. #123

Open
oridb opened this issue Oct 17, 2016 · 0 comments
Open

Basic dead code elimination should apply to reachability computation. #123

oridb opened this issue Oct 17, 2016 · 0 comments

Comments

@oridb
Copy link
Owner

oridb commented Oct 17, 2016

Right now, things like:

const f = {
     while true
           if do_thing
               -> 123
           ;;
      ;;
}

will complain because there's no return after while true. Trivially untaken branches (when the loop condition is a simply computed compile time constant) should be eliminated when determining use before def or reaching the end of the function without a return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant