autovectorization of outer loop

Hi Jyotirmoy Bhattacharya,

I’ve vectorized the outer loop of your example with RV, the Region Vectorizer (). I’ve attached the full IR. This is the code i got for the inner most loop: To reproduce this get the release_38 branch of RV from github and do as follows: File cheby.c: 1. Compile to IR w/o any of LLVM’s vectorizers: 2. Run the IR through RV’s cmd line vectorizer I’d like to add your code to our test suite on github if that is ok with you. Please get in touch with me if you have any other outer loops that could/should be vectorized. Regards, Simon

llvmdev_clenshaw_rv.ll (5.78 KB)