[PATCH] D135753: [VP] Teach isVPBinaryOp to recognize vp.smin/smax/umin/umax/minnum/maxnum.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 14:18:13 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/vmax-vp.ll:1170
+; RV64-NEXT:    vmax.vx v8, v8, a0, v0.t
+; RV64-NEXT:    vsetivli zero, 0, e32, m8, ta, ma
+; RV64-NEXT:    vmv1r.v v0, v24
----------------
fakepaper56 wrote:
> craig.topper wrote:
> > Why does RV64 not see the EVL is 0?
> As the comment of the test illustrated,  DAGCombiner could not transformed `usubsat((and (vscale x 16), 0xffffffff), vscale x 16)` to 0 before lowering. And vp binary operations are only existed before lowering.
Thanks. I didn't see the comment.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135753



More information about the llvm-commits mailing list