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

eliminate unary minus #30

Closed
dherman opened this issue Oct 31, 2012 · 1 comment
Closed

eliminate unary minus #30

dherman opened this issue Oct 31, 2012 · 1 comment

Comments

@dherman
Copy link
Collaborator

dherman commented Oct 31, 2012

Unary minus isn't safe without coercion because it can generate -0 which isn't a valid integer. But LLVM generates 0 - x anyway, so let's just eliminate unary minus.

@dherman dherman closed this as completed Nov 5, 2012
@jruderman
Copy link

Looks like the spec now has it returning intish, which makes sense.

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

2 participants