diff options
author | David Green <david.green@arm.com> | 2022-07-21 08:00:22 +0100 |
---|---|---|
committer | David Green <david.green@arm.com> | 2022-07-21 08:00:22 +0100 |
commit | 23d6186be0c9c16b7e99a7601c93d1b774610750 (patch) | |
tree | 5696f3bbf624649c35f32c44276527abc324d5ee /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 9e6585030533e901a8c24dcb05b38d3f0d10331f (diff) | |
download | llvm-23d6186be0c9c16b7e99a7601c93d1b774610750.zip llvm-23d6186be0c9c16b7e99a7601c93d1b774610750.tar.gz llvm-23d6186be0c9c16b7e99a7601c93d1b774610750.tar.bz2 |
[SelectionDAG] Fix fptoi.sat scalable vector lowering
Vector fptosi_sat and fptoui_sat were being expanded by unrolling the
vector operation. This doesn't work for scalable vector, so this patch
adds a call to TLI.expandFP_TO_INT_SAT if the vector is scalable.
Scalable tests are added for AArch64 and RISCV. Some of the AArch64
fptoi_sat operations should be legal, but that will be handled in
another patch.
Differential Revision: https://reviews.llvm.org/D130028
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions