[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 20:36:32 PST 2020
craig.topper accepted this revision.
craig.topper added a comment.
This revision is now accepted and ready to land.
LGTM with that one comment.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:463
+ if (EltVT.bitsLT(XLenVT)) {
+ SplatImm = SignExtend64(SplatImm, EltVT.getScalarSizeInBits());
+ }
----------------
EltVT is already a scalar right? So we should just need getSizeInBits().
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