[PATCH] D117454: [RISCV] Add patterns for vector narrowing integer right shift instructions
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 17 00:57:41 PST 2022
jacquesguan added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td:611
+ (op (vti.Wti.Vector vti.Wti.RegClass:$rs2),
+ (vti.Wti.Vector (sext_oneuse (vti.Vti.Vector vti.Vti.RegClass:$rs1)))),
+ (riscv_vmset_vl (XLenVT -1)),
----------------
Because only the low lg2(2*SEW) bits of the shift-amount value are used, I think we could also add zero extend here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117454/new/
https://reviews.llvm.org/D117454
More information about the llvm-commits
mailing list