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

[bug] [opt] Fix CFG ignoring local atomics after lower_access #1371

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

xumingkuan
Copy link
Contributor

@xumingkuan xumingkuan commented Jul 1, 2020

Related issue = N/A

stmt->is<AllocaStmt>() || stmt->is<LocalStoreStmt>() is not enough -- it didn't cover the local atomics' case.

Also considers range_for and struct_for as parallel for-loops before the offload pass.

[Click here for the format server]


@xumingkuan xumingkuan marked this pull request as draft July 1, 2020 20:51
@xumingkuan xumingkuan marked this pull request as ready for review July 1, 2020 20:57
@xumingkuan xumingkuan requested a review from yuanming-hu July 1, 2020 21:00
@codecov
Copy link

codecov bot commented Jul 1, 2020

Codecov Report

Merging #1371 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1371   +/-   ##
=======================================
  Coverage   85.60%   85.60%           
=======================================
  Files          19       19           
  Lines        3375     3375           
  Branches      625      625           
=======================================
  Hits         2889     2889           
  Misses        356      356           
  Partials      130      130           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32d2159...b652060. Read the comment docs.

@xumingkuan
Copy link
Contributor Author

@yuanming-hu Could you please take a look at this? I need it for my next PR. Thanks!

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.

LGTM! Thank you. (Sorry I've got some work to do during the day...)

@xumingkuan xumingkuan merged commit 3c0a198 into taichi-dev:master Jul 1, 2020
@FantasyVR FantasyVR mentioned this pull request Jul 4, 2020
@xumingkuan xumingkuan deleted the fix-cfg branch July 7, 2020 01:06
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