spatel added a comment. The cost model part of the patch LGTM. I think that someone more familiar with the loop vectorizer should have a look at that part. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93476/new/ https://reviews.llvm.org/D93476