Stylie777 wrote: @fhahn As I mentioned in https://github.com/llvm/llvm-test-suite/pull/404 I have added some cost modelling to this PR so that loops that are not beneficial to vectorise in this way will be left as scalar. https://github.com/llvm/llvm-project/pull/195823