davemgreen wrote: This will require a rebase now. I would think that a cost of 4 is too low for something that has to pass values to vector registers and back (for rthru, for codesize it sounds OK). https://github.com/llvm/llvm-project/pull/191769