[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
Fri Oct 22 08:35:14 PDT 2021
HsiangKai added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:204
+
+ for (const MachineOperand &MO : MBBI->defs()) {
+ if (!FoundDef && TRI->isSubRegisterEq(MO.getReg(), SrcReg)) {
----------------
frasercrmck wrote:
> Do we need to worry about implicit defs?
The function only handles vector COPY. Is there an instruction to have an implicit define for vector registers?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103510/new/
https://reviews.llvm.org/D103510
More information about the llvm-commits
mailing list