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

Propagate semantic constants ahead of static rewrites. #5024

Merged
merged 1 commit into from Jan 3, 2020

Conversation

stuartarchibald
Copy link
Contributor

This makes it such that semantic constant propagation happens
before any rewrites for e.g. static getitem are performed to
ensure that there are the most constants possible in the IR and
therefore the maximum opportunities for rewrites to spot them.

Fixes #5015

This makes it such that semantic constant propagation happens
before any rewrites for e.g. static getitem are performed to
ensure that there are the most constants possible in the IR and
therefore the maximum opportunities for rewrites to spot them.

Fixes numba#5015
Copy link
Member

@sklam sklam left a comment

Choose a reason for hiding this comment

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

Looks good

@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Jan 3, 2020
@seibert seibert merged commit 88e3dad into numba:master Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

semantic constant prop needs to run before static* rewrites
3 participants