[all-commits] [llvm/llvm-project] 80aab0: [ARM] Cost modelling for scalar fptoi_sat

David Green via All-commits all-commits at lists.llvm.org
Thu May 19 11:53:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80aab0312acea2231b9aec4ba2ceb5951ae8016a
      https://github.com/llvm/llvm-project/commit/80aab0312acea2231b9aec4ba2ceb5951ae8016a
  Author: David Green <david.green at arm.com>
  Date:   2022-05-19 (Thu, 19 May 2022)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/ARM/fptoi_sat.ll

  Log Message:
  -----------
  [ARM] Cost modelling for scalar fptoi_sat

Similar to D124357, this adds some cost modelling for fptoi_sat for Arm
targets. Where VFP2 is available (and FP64/FP16 for the relevant types),
the operations are legal as the Arm instructions naturally saturate.
Otherwise they will need an extra smin/smax clamp, similar to AArch64.

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




More information about the All-commits mailing list