[TargetLowering] Don't use ISD::SELECT_CC in expandFP_TO_INT_SAT.
authorCraig Topper <craig.topper@sifive.com>
Sat, 29 Apr 2023 17:06:22 +0000 (10:06 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sat, 29 Apr 2023 17:23:08 +0000 (10:23 -0700)
commitdf017ba9d33f6e0d7d518abd397b0383ba271894
treea6e23584b62823080ad00895c9d3df18a8c40e2d
parent64a2520bacb59dac43bb4fd19ff1788d785102de
[TargetLowering] Don't use ISD::SELECT_CC in expandFP_TO_INT_SAT.

This function gets called for vectors and ISD::SELECT_CC was never
intended to support vectors. Some updates were made to support
it when this function started getting used for vectors.

Overall, using separate ISD::SETCC and ISD::SELECT looks like an
improvement even for scalar.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D149481
13 files changed:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/ARM/fptosi-sat-scalar.ll
llvm/test/CodeGen/ARM/fptoui-sat-scalar.ll
llvm/test/CodeGen/RISCV/double-convert.ll
llvm/test/CodeGen/RISCV/double-round-conv-sat.ll
llvm/test/CodeGen/RISCV/float-convert.ll
llvm/test/CodeGen/RISCV/float-round-conv-sat.ll
llvm/test/CodeGen/RISCV/half-convert.ll
llvm/test/CodeGen/RISCV/half-round-conv-sat.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp2i-sat.ll
llvm/test/CodeGen/Thumb2/mve-fptosi-sat-vector.ll
llvm/test/CodeGen/Thumb2/mve-fptoui-sat-vector.ll
llvm/test/CodeGen/X86/fptosi-sat-scalar.ll