https://github.com/david-arm approved this pull request. LGTM! Thanks for this. I think in my original patch for adding the vector early exit costs I bailed out for scalar VFs. At some point I might have hit a similar issue. https://github.com/llvm/llvm-project/pull/131604