[RISCV] Teach computeKnownBits that vsetvli returns <= 65536.
authorCraig Topper <craig.topper@sifive.com>
Sat, 28 Jan 2023 00:39:54 +0000 (16:39 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sat, 28 Jan 2023 00:39:54 +0000 (16:39 -0800)
commit4ea6d42b632d166e6ee2f38f6758ed71515a7f7a
treea500dd9687da6e1f56dc188486d1019aa5d9806f
parent1ce3afd97784b7e638c6a562451dc008a6bc3907
[RISCV] Teach computeKnownBits that vsetvli returns <= 65536.

Resolves a FIXME. We could do even better taking into account SEW/LMUL.
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/vsetvl-ext.ll
llvm/test/Transforms/InstCombine/RISCV/riscv-vsetvli-knownbits.ll