[PATCH] D124833: [RISCV] Optimize redundant vsetvli for Vector Mask-Register Logical Instructions.
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 03:40:24 PDT 2022
frasercrmck added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:702
+ default:
+ break;
+#define CASE_VMASK_OPCODES(suffix) \
----------------
`default: return false`? Then we don't need `IsMaskLogicalOp`
================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:959
// we need to insert a VSETVLI.
// If this is a unit-stride or strided load/store, we may be able to use
// the EMUL=(EEW/SEW)*LMUL relationship to avoid changing vtype.
----------------
This comment could be updated
================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:1122
// we need to insert a VSETVLI.
// If this is a unit-stride or strided load/store, we may be able to use
// the EMUL=(EEW/SEW)*LMUL relationship to avoid changing vtype.
----------------
This comment too
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124833/new/
https://reviews.llvm.org/D124833
More information about the llvm-commits
mailing list