[PATCH] D122875: [DAGCombiner] Scalarize extend/truncate for splat vector.

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 07:41:38 PDT 2022


frasercrmck added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/vnsra-sdnode.ll:33
+; RV64-NEXT:    vncvt.x.x.w v8, v8
+; RV64-NEXT:    ret
   %head = insertelement <vscale x 1 x i32> poison, i32 %b, i32 0
----------------
jacquesguan wrote:
> RKSimon wrote:
> > Still a regression - can RISCV64 really not be coaxed into generating something better?
> In order to generate widening instruction, I disable scalarizing of sign_ext and zero_ext, because the scalar type integer extention is easy to combine with other node, make it won't match the pattern.
Do you think there's any way to fix it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122875



More information about the llvm-commits mailing list