[PATCH] D93837: [RISCV] Pattern-match more vector-splatted constants
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 27 11:33:11 PST 2020
craig.topper 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;
----------------
Can we use SignExtend64 from MathExtras.h here?
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