[all-commits] [llvm/llvm-project] a4f42a: [AArch64] Improve fptosi.sat lowering

David Green via All-commits all-commits at lists.llvm.org
Fri Oct 15 03:12:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4f42a33be37d247d10455cc6d1b255505639a7b
      https://github.com/llvm/llvm-project/commit/a4f42a33be37d247d10455cc6d1b255505639a7b
  Author: David Green <david.green at arm.com>
  Date:   2021-10-15 (Fri, 15 Oct 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll

  Log Message:
  -----------
  [AArch64] Improve fptosi.sat lowering

Improve the lowering of scalar fptosi.sat and fptoui.sat for saturating
widths smaller than legal types by using the fact that the legal type
will saturate under aarch64, and saturating the result further using
min/max.

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




More information about the All-commits mailing list