[all-commits] [llvm/llvm-project] 2dcb2d: [AArch64] Cost modelling for fptoi_sat

David Green via All-commits all-commits at lists.llvm.org
Mon May 2 03:36:24 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dcb2d85626dc83c484a4d630821281959c98d61
  Author: David Green <david.green at arm.com>
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AArch64/fptoi_sat.ll

  Log Message:
  [AArch64] Cost modelling for fptoi_sat

This builds on top of the target-independent cost model added in D124269
to add aarch64 specific costs for fptoui_sat and fptosi_sat intrinsics.
For many common types they will be legal instructions as the AArch64
instructions will saturate naturally. For unsupported pairs of integer
and floating point types, an additional min/max clamp is needed.

Differential Revision: https://reviews.llvm.org/D124357

More information about the All-commits mailing list