Skip to content
Commit ac603c8d authored by Fraser Cormack's avatar Fraser Cormack
Browse files

[RISCV] Add scalable vector truncate patterns



Original patch by @rogfer01.

This patch supports vector truncates, which on RVV must be done in a
series of instructions truncating by one power-of-two at a time. This is
done through custom-lowering and a custom node to avoid LLVM
re-combining the split TRUNCATE nodes.

Authored-by: default avatarRoger Ferrer Ibanez <rofirrim@gmail.com>
Co-Authored-by: default avatarFraser Cormack <fraser@codeplay.com>

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D94796
parent 770d1e0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment