diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-05-27 15:20:02 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-05-27 15:34:08 -0700 |
commit | 0fa5aac292b8e1bafb00b55233c78466b06bc323 (patch) | |
tree | 0bbed5bb76b8114486e607c7f024bde5523586d9 /llvm/lib/Object/Archive.cpp | |
parent | 2d2a9020785c6e02afebc876aa2778fa64c5cafd (diff) | |
download | llvm-0fa5aac292b8e1bafb00b55233c78466b06bc323.zip llvm-0fa5aac292b8e1bafb00b55233c78466b06bc323.tar.gz llvm-0fa5aac292b8e1bafb00b55233c78466b06bc323.tar.bz2 |
[RISCV] Teach VSETVLI insertion to look through PHIs to prove we don't need to insert a vsetvli.
If an instruction's AVL operand is a PHI node in the same block,
we may be able to peek through the PHI to find vsetvli instructions
that produce the AVL in other basic blocks. If we can prove those
vsetvli instructions have the same VTYPE and were the last vsetvli
in their respective blocks, then we don't need to insert a vsetvli
for this pseudo instruction.
Reviewed By: rogfer01
Differential Revision: https://reviews.llvm.org/D103277
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions