Regarding LLVM outer loop vectorization


I am trying to vectorize a loop nest by vectorizing outermost loop using OpenMP as a part of an undergraduate project due in November. I believe clang does not support this at the moment. I found Region Vectorizer framework as a solution for this. Would you recommend this framework or is there a popular workaround? (may be by enforcing vectorization using clang specific pragmas)

Thank you!


There’s a talk on this precise topic at the upcoming LLVM dev mtg. You might get the answers you need from the authors’ paper once it is published.