-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unnecessary ctrl
operator with no arguments
#32
Comments
ctrl
operatorctrl
operator with no arguments
The problem is that we always create a The right thing to do is to alter the transformations for both of these constructs in such a way that they do not produce a That's why we might want to consider leaving the concept of Comments, opinions? |
I agree with your view that the |
I think I fixed it and I'll close the issue. Should more problems arise feel free to reopen |
Now recognizes function references
I'm pretty sure the problems with unused However a related issue has arisen, which I am now tracking with #33 |
The current version of
ohua-core
(cab3ff9) and I think the current version from master as well produce an unnecessaryctrl
operator for this simple smap algorithm:This leads to the problem that incorrect code is being generated for the
ctrl
operator, as there is nothing to context. The current workaround is that the backend contains an optimization pass that identifies thesectrl
operators and removes them, leaving behind aDeadEndArc
that just discards all inputs. But as @sertel pointed out it would be wiser to do this in an earlier step incore
.alang-resolved|dflang-initial|dflang-core
The text was updated successfully, but these errors were encountered: