[PATCH] D118215: [RISCV] Add support for matching vwmulsu from fixed vectors.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 26 01:03:40 PST 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:7269
 
+  // For VWMULSU.vx vd, vs2, rs1. The signed extern op must be vs2,
+  // so if Op0 IsSignExt it can not be a vector extended from scalar.
----------------
This code doesn't make sense to me. Is it still needed even after removing the `SDNPCommutative` flag?

Once you've identified a VSEXT and VZEXT everything should be fine. Tablegen should only be able to select the splat on zero extend operand.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118215



More information about the llvm-commits mailing list