Andarwinux wrote: Miscompilations caused by veclib legalization are frequently reported. If backend-based legalization cannot be implemented in near-term, could we merge this PR as a stopgap measure? https://github.com/llvm/llvm-project/pull/197661