https://github.com/davemgreen approved this pull request. Thanks. Like I said in the long run we might want to redo how the gather/scatter costs are calculated, which might change this again. In the mean time this sounds OK to me. LGTM https://github.com/llvm/llvm-project/pull/101296