[RISCV] Fix a crash in RISCVGatherScatterLowering
authorPhilip Reames <preames@rivosinc.com>
Sun, 16 Apr 2023 04:26:07 +0000 (21:26 -0700)
committerPhilip Reames <listmail@philipreames.com>
Sun, 16 Apr 2023 04:27:17 +0000 (21:27 -0700)
commitd4773c6a3dfa0da8802bc7adb6e127a36cc0600a
tree1d7e06b511a4b43705701b11b4947700494cca60
parent8308e81b741eb066b6dc959c47a5536fcaa94023
[RISCV] Fix a crash in RISCVGatherScatterLowering

We were assuming that the constant must always be fixed length when this is not required.  Such code is unlikely after optimization, which is why we didn't see this previously.
llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
llvm/test/CodeGen/RISCV/rvv/strided-load-store.ll