david-arm wrote: Hmm, it seems a shame to close this because I thought what you are doing here seems perfectly sensible. There seems to be a genuine improvement in llvm/test/Transforms/LoopVectorize/version-stride-with-integer-casts.ll https://github.com/llvm/llvm-project/pull/124567