diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-05-25 16:28:34 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-05-26 09:25:42 -0700 |
commit | 1b47a3de48d2ac3ee4420209ab5d191f66849979 (patch) | |
tree | aac81f451902ca93d8af037ef856483006d3840a /llvm/lib/Transforms/Utils/Local.cpp | |
parent | ea91a8cbab93e6592c918b771942598ad0e9b571 (diff) | |
download | llvm-1b47a3de48d2ac3ee4420209ab5d191f66849979.zip llvm-1b47a3de48d2ac3ee4420209ab5d191f66849979.tar.gz llvm-1b47a3de48d2ac3ee4420209ab5d191f66849979.tar.bz2 |
[RISCV] Enable cross basic block aware vsetvli insertion
This patch extends D102737 to allow VL/VTYPE changes to be taken
into account before adding an explicit vsetvli.
We do this by using a data flow analysis to propagate VL/VTYPE
information from predecessors until we've determined a value for
every value in the function.
We use this information to determine if a vsetvli needs to be
inserted before the first vector instruction the block.
Differential Revision: https://reviews.llvm.org/D102739
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions