[PATCH] D94078: [RISCV] Add vector mask arithmetic ISel patterns
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 04:14:06 PST 2021
frasercrmck added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td:41
+def riscv_m_vnot : PatFrag<(ops node:$in),
+ (xor node:$in, (splat_vector (XLenVT 1)))>;
+
----------------
I couldn't find a way of using `SplatPat` here because it complained about using non-named inputs in a PatFrag. Is there a better way?
The best way to resolve this would be to fix `OPC_CheckImmAllOnes` but the link with `BUILD_VECTOR` goes quite deep and I can't find the best place to support `SPLAT_VECTOR` without introducing yet another function or moving functionality from `isBuildVectorAllOnes` into `isConstantSplatVector`, which I suspect will introduce a functionality change to many other targets.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94078/new/
https://reviews.llvm.org/D94078
More information about the llvm-commits
mailing list