[all-commits] [llvm/llvm-project] 5c9b49: [AArch64][GlobalISel] Select *v1f16 for f16->s16 t...

Kajetan Puchalski via All-commits all-commits at lists.llvm.org
Fri Aug 29 09:02:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c9b497ce4d3e5a63a55a80a4ab987955197d799
      https://github.com/llvm/llvm-project/commit/5c9b497ce4d3e5a63a55a80a4ab987955197d799
  Author: Kajetan Puchalski <kajetan.puchalski at arm.com>
  Date:   2025-08-29 (Fri, 29 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
    M llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll

  Log Message:
  -----------
  [AArch64][GlobalISel] Select *v1f16 for f16->s16 to_int_sat_gi (#154562)

Conversions from f16 to s16 performed by to_int_sat_gi can be done
directly within FPRs, e.g. `fcvtzs h0, h0`.
Generating this format reduces the number of instruction required for
correct behaviour, as it sidesteps the issues with incorrect saturation
that arise when using `fcvtzs w0, h0` for the same casts.

---------

Signed-off-by: Kajetan Puchalski <kajetan.puchalski at arm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list