[RISCV] Expand scalable vector bswap. Fix crash for bitreverse.
authorCraig Topper <craig.topper@sifive.com>
Fri, 29 Oct 2021 16:52:36 +0000 (09:52 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 31 Oct 2021 17:01:27 +0000 (10:01 -0700)
commitada5458521977b0d34bf7c6530ed04deba8fd833
treec93b844902f44da65ac2b03f14e80f25ccf4e58a
parent1a605f395ff079ced140f04ee743dbfc7fc46ec9
[RISCV] Expand scalable vector bswap. Fix crash for bitreverse.

Fix LegalizeVectorOps to not try shuffle or unrolling expansions for
scalable vectors.

Differential Revision: https://reviews.llvm.org/D112236
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/bitreverse-sdnode.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/bswap-sdnode.ll [new file with mode: 0644]