diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-02-22 16:51:24 +0000 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-02-25 12:11:34 +0000 |
commit | 84413e1947427a917a3e55abfc1f66c42adc751b (patch) | |
tree | df55c68fbeb08c22cfe8afac0ea2114d74458fc6 /clang/lib/Frontend | |
parent | 3bc5ed38750c6a6daff39ad524b75e40c8c09183 (diff) | |
download | llvm-84413e1947427a917a3e55abfc1f66c42adc751b.zip llvm-84413e1947427a917a3e55abfc1f66c42adc751b.tar.gz llvm-84413e1947427a917a3e55abfc1f66c42adc751b.tar.bz2 |
[RISCV] Support fixed-length vector truncates
This patch extends support for our custom-lowering of scalable-vector
truncates to include those of fixed-length vectors. It does this by
co-opting the custom RISCVISD::TRUNCATE_VECTOR node and adding mask and
VL operands. This avoids unnecessary duplication of patterns and
inflation of the ISel table.
Some truncates go through CONCAT_VECTORS which currently isn't
efficiently handled, as it goes through the stack. This can be improved
upon in the future.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D97202
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions