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

Improve/fix handling of WordXVector constants in Useless pass #567

Merged
merged 4 commits into from
May 16, 2024

Conversation

MatthewFluet
Copy link
Member

Allow a Exp.Const (Const.WordXVector ws) to "optimize" to a Vector_vector[unit](unitVar, ..., unitVar) when the elements are useless.

Ensure that `Useless.doitExp` is called with a (non-`NONE`) `Value.t`.
Allow a `Exp.Const (Const.WordXVector ws)` to "optimize" to a
`Vector_vector[unit](unitVar, ..., unitVar)` when the elements are useless.

Closes MLton#559
@MatthewFluet MatthewFluet merged commit d79fcc8 into MLton:master May 16, 2024
11 checks passed
@MatthewFluet MatthewFluet deleted the useless-issue-559 branch May 16, 2024 09:29
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