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

Parser optimization; refactoring #76

Merged
merged 5 commits into from
Aug 18, 2016
Merged

Parser optimization; refactoring #76

merged 5 commits into from
Aug 18, 2016

Conversation

mihaibudiu
Copy link
Contributor

Refactored passes to run whatever analyses necessary to establish their own preconditions; the mid-ends and back-ends should be much cleaner.

if (expr->is<IR::Mask>()) {
auto mask = expr->to<IR::Mask>();
checkSimpleConstant(mask->left);
checkSimpleConstant(mask->right);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there be an early return; here? Otherwise it will fall through to the ::error?

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.

2 participants