[llvm] [AArch64] Lower mathlib call ldexp into fscale when sve is enabled (PR #67552)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 04:40:44 PDT 2023
================
@@ -26414,3 +26422,46 @@ bool AArch64TargetLowering::preferScalarizeSplat(SDNode *N) const {
}
return true;
}
+
+SDValue AArch64TargetLowering::LowerFLDEXP(SDValue Op,
+ SelectionDAG &DAG) const {
+ SDValue X = Op.getOperand(0);
+ EVT XScalarTy = X.getValueType();
+ SDValue Exp = Op.getOperand(1);
+
+ SDLoc DL(Op);
+ EVT XVT, ExpVT;
+ switch (Op.getSimpleValueType().SimpleTy) {
+ default:
+ return SDValue();
+ case MVT::f16:
+ X = DAG.getNode(ISD::FP_EXTEND, DL, MVT::f32, X);
----------------
huhu233 wrote:
Done, thank very much!
https://github.com/llvm/llvm-project/pull/67552
More information about the llvm-commits
mailing list