[llvm] [RISCV] Move the rest of Zfa FLI instruction handling to lowerConstantFP. (PR #109217)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 05:34:16 PDT 2024
================
@@ -5802,22 +5802,29 @@ SDValue RISCVTargetLowering::lowerConstantFP(SDValue Op,
MVT VT = Op.getSimpleValueType();
const APFloat &Imm = cast<ConstantFPSDNode>(Op)->getValueAPF();
- if (getLegalZfaFPImm(Imm, VT) >= 0)
- return Op;
+ // Can this constant be select by a Zfa FLI instruction?
----------------
asb wrote:
Tiny nit: "select" -> "selected"
https://github.com/llvm/llvm-project/pull/109217
More information about the llvm-commits
mailing list