[RISCV] Teach CleanupVSETVLI to remove 'vsetvli zero, zero, vtype' when the vtype...
authorCraig Topper <craig.topper@sifive.com>
Thu, 25 Feb 2021 15:43:55 +0000 (07:43 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 25 Feb 2021 15:51:19 +0000 (07:51 -0800)
commit95c68249952803330739b7311dd2bdc7b18e272f
treeb37f4bbfd861c86e06203fd2827f3a894c6a26b3
parent03b7bc0ba1ce3804f92f1c9e990b4aaa54583862
[RISCV] Teach CleanupVSETVLI to remove 'vsetvli zero, zero, vtype' when the vtype matches the previous vsetvli or vsetivli

Reviewed By: frasercrmck, arcbbb

Differential Revision: https://reviews.llvm.org/D97408
llvm/lib/Target/RISCV/RISCVCleanupVSETVLI.cpp
llvm/test/CodeGen/RISCV/rvv/extractelt-fp-rv32.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-fp-rv64.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv32.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv64.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-int-rv32.ll