[PATCH] D103510: [RISCV] Use vmv.v.[v|i] if we know COPY is under the same vl and vtype.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 30 09:43:13 PDT 2021


HsiangKai updated this revision to Diff 376252.
HsiangKai added a subscriber: khchen.
HsiangKai added a comment.
Herald added a subscriber: achieveartificialintelligence.

When producing instruction is a widening reduction instruction with LMUL = 1,
we could not convert whole register move to vmv. The result of reduction
instructions is LMUL = 1 with widening SEW. @khchen has found the bug and help
to fix it. This update includes his fix.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103510

Files:
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
  llvm/lib/Target/RISCV/RISCVInstrFormats.td
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/test/CodeGen/RISCV/rvv/calling-conv-fastcc.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-calling-conv.ll
  llvm/test/CodeGen/RISCV/rvv/vmv-copy.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103510.376252.patch
Type: text/x-patch
Size: 34058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/7abf3caa/attachment.bin>


More information about the llvm-commits mailing list