-
Notifications
You must be signed in to change notification settings - Fork 2
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
rename redefined variables #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure if you've fixed these already.
it would be good if the indentation is fixed, and everything else is just commentary.
This changeset slows Edit: seems to be the globals initialisation within scoped_bindings. let globals = Seq.map (fun f -> (f, {name=f; index=0})) (IdentSet.to_seq globals) in pushing an empty IdentMap instead seems to work ok..? there shouldn't be any redeclarations of global variables. |
f3123da
to
1d181b1
Compare
2121916
to
f524b4b
Compare
Adds a transform pass that renames variables that have multiple definitions in the same scope.
Fixes #43