[PATCH] D117079: [RISCV] Improve i64 splat vector lowering in RV32.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 12 00:32:02 PST 2022
jacquesguan marked 2 inline comments as done.
jacquesguan added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:2218
+ if (LoC == HiC && Const && Const->getSExtValue() == RISCV::VLMaxSentinel) {
+ auto InterVT =
+ MVT::getScalableVectorVT(MVT::i32, 2 * VT.getVectorNumElements());
----------------
craig.topper wrote:
> auto doesn't add anything here. It's more characters than MVT
Done
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:2220
+ MVT::getScalableVectorVT(MVT::i32, 2 * VT.getVectorNumElements());
+ // TODO: if vl <= min(VLMAX), we could also do this. But we could not
+ // access the subtarget here now.
----------------
craig.topper wrote:
> could -> can
Done
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117079/new/
https://reviews.llvm.org/D117079
More information about the llvm-commits
mailing list