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

[IR] Move "lower_access" after "offload" #1194

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

xumingkuan
Copy link
Collaborator

Related PR = #1180

benchmark20200608_4

In order to achieve similar performance, I added some optimization passes.

[Click here for the format server]

@xumingkuan
Copy link
Collaborator Author

Removing Simplify II here won't affect the resulting number of statements, but it looks weird to me not having full_simplify before offload.

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM.

Removing Simplify II here won't affect the resulting number of statements, but it looks weird to me not having full_simplify before offload.

We actually do want a simplification there: lower_access may lead to a lot of instruction that slows down future passes. It would be good to use Simlification II to reduce the number of instruction early before lower_access.

@yuanming-hu yuanming-hu changed the title [IR] Move "lower_access" to after "offload" [IR] Move "lower_access" after "offload" Jun 9, 2020
@yuanming-hu yuanming-hu merged commit a0e4871 into taichi-dev:master Jun 9, 2020
@yuanming-hu yuanming-hu mentioned this pull request Jun 10, 2020
@xumingkuan xumingkuan deleted the move branch June 10, 2020 20:30
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.

None yet

2 participants