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

Don't vectorize if the vectorization width is 1 #12

Open
simoll opened this issue Jan 22, 2018 · 0 comments
Open

Don't vectorize if the vectorization width is 1 #12

simoll opened this issue Jan 22, 2018 · 0 comments

Comments

@simoll
Copy link
Member

simoll commented Jan 22, 2018

This is a reminder for the vectorization width == 1 corner case.

RV will run the full vectorization pipeline if the vectorization width is 1. Since the divergence analysis implicitly assumes that there are at least two threads per vector, this leads to inefficient code and even breakage in LLVM's x86 backend if gathers on <1 x T*> are emitted.

Solution: make the divergence analysis report all instructions as uniform if the vectorization width is 1 and copy the scalar instructions in RV's vector code backend.

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

1 participant