[all-commits] [llvm/llvm-project] 900c89: [AArch64] Lower fpto*i.sat intrinsics.

Jacob via All-commits all-commits at lists.llvm.org
Mon May 17 02:20:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 900c8989947a46e0678a0e8ae5d14157f051e14f
      https://github.com/llvm/llvm-project/commit/900c8989947a46e0678a0e8ae5d14157f051e14f
  Author: Jacob Bramley <jacob.bramley at arm.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.h
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    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
    A llvm/test/CodeGen/AArch64/round-fptosi-sat-scalar.ll
    A llvm/test/CodeGen/AArch64/round-fptoui-sat-scalar.ll

  Log Message:
  -----------
  [AArch64] Lower fpto*i.sat intrinsics.

AArch64's fctv* instructions implement the saturating behaviour that the
fpto*i.sat intrinsics require, in cases where the destination width
matches the saturation width. Lowering them removes a lot of unnecessary
generated code.

Only scalar lowerings are supported for now.

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




More information about the All-commits mailing list