[llvm] [AArch64][SDAG] Add f16 -> i16 rounding NEON conversion intrinsics (PR #155851)

Kajetan Puchalski via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 29 03:32:10 PDT 2025


================
@@ -28292,6 +28306,30 @@ void AArch64TargetLowering::ReplaceNodeResults(
       Results.push_back(DAG.getNode(ISD::TRUNCATE, DL, VT, V));
       return;
     }
+    case Intrinsic::aarch64_neon_fcvtzs: {
----------------
mrkajetanp wrote:

My rationale for this was that fptosi.sat will be replaced with these same nodes regardless so replacing the intrinsic with the nodes directly skips a step and saves some cycles. Would we rather go through fptosi.sat?

https://github.com/llvm/llvm-project/pull/155851


More information about the llvm-commits mailing list