[all-commits] [llvm/llvm-project] 23d618: [SelectionDAG] Fix fptoi.sat scalable vector lowering
David Green via All-commits
all-commits at lists.llvm.org
Thu Jul 21 00:00:35 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23d6186be0c9c16b7e99a7601c93d1b774610750
https://github.com/llvm/llvm-project/commit/23d6186be0c9c16b7e99a7601c93d1b774610750
Author: David Green <david.green at arm.com>
Date: 2022-07-21 (Thu, 21 Jul 2022)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
A llvm/test/CodeGen/AArch64/sve-fptosi-sat.ll
A llvm/test/CodeGen/AArch64/sve-fptoui-sat.ll
A llvm/test/CodeGen/RISCV/rvv/fptosi-sat.ll
A llvm/test/CodeGen/RISCV/rvv/fptoui-sat.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list