[llvm] [InstCombine][RISCV] Convert VPIntrinsics with splat operands to splats (PR #65706)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 04:12:06 PDT 2023


lukel97 wrote:

@ChunyuLiao pointed out that the VectorCombine pass already scalarizes binary ops with splatted operands at the IR level: https://godbolt.org/z/MPvvTG5dT

Would it make sense to do this in VectorCombine::scalarizeBinopOrCmp? It seems to have some cost modelling in there which I'd imagine would be good to take advantage of

https://github.com/llvm/llvm-project/pull/65706


More information about the llvm-commits mailing list