[RISCV] Make PseudoReadVL have the vtypes of the corresponding VLEFF/VLSEGFF.
authorYeting Kuo <yeting.kuo@sifive.com>
Sun, 8 May 2022 13:10:06 +0000 (21:10 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Wed, 11 May 2022 06:07:58 +0000 (14:07 +0800)
commit4537aae0d57e17c217c192d8977012ba475b130c
tree315d44249c87778a051724e7e18eb2c61d20d83c
parent2509dcd58a0a3dee33ed337b92fd2436d2e342f2
[RISCV] Make PseudoReadVL have the vtypes of the corresponding VLEFF/VLSEGFF.

The patch make PseudoReadVL have the vtypes of the corresponding VLEFF/VLSEGFF.
It's useful to get the vtypes of locations of PseudoReadVL without finding the
corresponding VLEFF/VLSEGFF.
It could simplify optimizations in RISCVInsertVSETVLI like D123581.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D125199
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/lib/Target/RISCV/RISCVMCInstLower.cpp
llvm/test/CodeGen/RISCV/rvv/vleff-rv32-readvl.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vleff-rv64-readvl.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vlseg2ff-rv32-readvl.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/vlseg2ff-rv64-readvl.ll [new file with mode: 0644]