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

Unnecessary end-of-loop barriers #212

Open
Bastacyclop opened this issue Sep 6, 2021 · 1 comment
Open

Unnecessary end-of-loop barriers #212

Bastacyclop opened this issue Sep 6, 2021 · 1 comment
Labels
enhancement New feature or request prio:low

Comments

@Bastacyclop
Copy link
Member

At the end of a loop, there are two possible scenarios:

  1. the loop will be taken again
  2. the loop will be exited

Currently barrier insertion conflates the two, but sometimes more precise barriers could be inserted for the individual scenarios.
This is easy noticed for example on 1-trip loops such as in CGO17's Convolution Row benchmark.
We know that the loop is only taken once, but we stil insert a barrier for scenario 1. at the end of the loop.

@Bastacyclop Bastacyclop added enhancement New feature or request prio:low labels Sep 6, 2021
@Bastacyclop
Copy link
Member Author

related to #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:low
Projects
None yet
Development

No branches or pull requests

1 participant