[all-commits] [llvm/llvm-project] 45e1a6: [AArch64][GlobalISel] Legalize scalar G_FMINNUM + ...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Aug 18 13:30:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45e1a6bd2589469be526c2213598b9847a655fcb
      https://github.com/llvm/llvm-project/commit/45e1a6bd2589469be526c2213598b9847a655fcb
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/legalize-fmaxnum.mir
    A llvm/test/CodeGen/AArch64/GlobalISel/legalize-fminnum.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Legalize scalar G_FMINNUM + G_FMAXNUM

For subtargets with full FP16, this is legal for s16, s32, and s64. Without
full FP16, it's legal for s32 and s64.

For s128, this is a libcall.

We also support some vector types, but for now, let's just support scalars.

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




More information about the All-commits mailing list