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

Remove latch-exit restriction in rv::LoopVectorizer #10

Open
simoll opened this issue Dec 1, 2017 · 2 comments
Open

Remove latch-exit restriction in rv::LoopVectorizer #10

simoll opened this issue Dec 1, 2017 · 2 comments

Comments

@simoll
Copy link
Member

simoll commented Dec 1, 2017

At the moment, RV's LoopVectorizer pass only supports latch exit loops. Otherwise, the remainder loop transformation (RemainderTransform) bails and the loop remains scalar. This restriction does not apply to any other nested loops in the outer loop being vectorized.

This loop will be vectorized:

Header:
 ...
Latch:
 ...
  br i1 %exitcond, label %Exit, label %Header

This loop won't be vectorized as the exit is not in the latch:

Header:
 ...
  br i1 %exitcond, label %Exit, ....

Latch:
 ...
  br label %Header
@zhang-rui-github
Copy link

I see this issue was created in 2017 so am curious if the restriction on latch exit loops is still valid now. Thanks.

@simoll
Copy link
Member Author

simoll commented Jan 9, 2023

It is still a restriction. You are very welcome to work on this. Tech for detecting/separating dependence cycles has been around for a long time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants