[PATCH] D119110: [RISCV] support vwmulsu_vx when one input is a scalar splat

Chenbing.Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 00:19:05 PST 2022


Chenbing.Zheng added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:7625
 
-    if (IsSignExt) {
+    if (IsSignExt && ISD::isZEXTLoad(Op1.getNode())) {
+      APInt Mask = APInt::getBitsSetFrom(ScalarBits, NarrowSize);
----------------
frasercrmck wrote:
> The description says that we're now supporting scalar splats but AFAICT this will only work for zero-extending loads? Feels like maybe the testing you're adding is too narrowly-focused and dependent on the `load`.
I aggre with you. I am sorry about that I have no more ideal about other cases now. May I add a 'Fix me' here ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119110



More information about the llvm-commits mailing list