[PATCH] D93837: [RISCV] Pattern-match more vector-splatted constants
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 27 11:54:21 PST 2020
frasercrmck marked an inline comment as done.
frasercrmck added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:463
+ if (EltVT.bitsLT(XLenVT)) {
+ uint64_t ShAmt = 64 - EltVT.getScalarSizeInBits();
+ SplatImm = (SplatImm << ShAmt) >> ShAmt;
----------------
craig.topper wrote:
> Can we use SignExtend64 from MathExtras.h here?
Yes, thanks. For some reason I thought there was only the templated one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93837/new/
https://reviews.llvm.org/D93837
More information about the llvm-commits
mailing list