[PATCH] D108288: [LegalizeTypes][VP] Add promotion support for binary VP ops

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 8 02:22:15 PDT 2021


frasercrmck added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/vdiv-vp.ll:15
+; CHECK-NEXT:    vsra.vi v25, v25, 1
+; CHECK-NEXT:    vmv.v.x v26, a0
+; CHECK-NEXT:    vadd.vv v26, v26, v26
----------------
craig.topper wrote:
> We should use slli a0, a0, 1 followed by vmv.v.x here. Not something that needs to be fixed in this patch though.
Ah yes that's an interesting observation. Presumably we also want to do the `vsra.vi v26, v26, 1` in scalar before splatting?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108288/new/

https://reviews.llvm.org/D108288



More information about the llvm-commits mailing list