[PATCH] D149369: [RISCV] Consolidate legality checking for strided load/store [nfc]

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 01:55:54 PDT 2023


luke added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:11255
   // Get the widened scalar type, e.g. v4i8 -> i64
   unsigned WideScalarBitWidth =
       BaseLdVT.getScalarSizeInBits() * BaseLdVT.getVectorNumElements();
----------------
craig.topper wrote:
> Is WideScalarBitWidth guaranteed to be a valid MVT? Like can we get i256, i512, i1024, etc. here?
I presume if it's not then WideVecVT won't be legal below and we'll fail the legality check


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149369/new/

https://reviews.llvm.org/D149369



More information about the llvm-commits mailing list