-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Extended Syntax: non-shared elimination #84
Conversation
|
||
change = if exp' /= exp then DeletedHeapOperation else NoChange | ||
|
||
tyEnv = either error id $ typeEnvFromHPTResult _hptResult |
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.
This is a bit fishy. We should not convert HPT results in the transformation. :) Something to worth looking at when we clean the pipeline code.
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.
Is this an impossible case?
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.
@andorp Yep, there is something wrong about this. I can't recall the reason why I implemented the change. I will create an issue about this.
@csabahruska Well, if the sharing result is correct, we should always get a valid HPT results and thus a valid type env. This is basically a safety catch.
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.
See #95
|
||
change = if exp' /= exp then DeletedHeapOperation else NoChange | ||
|
||
tyEnv = either error id $ typeEnvFromHPTResult _hptResult |
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.
Is this an impossible case?
See #32