[all-commits] [llvm/llvm-project] 7a70a2: [AArch64][GlobalISel] Mark G_FCONSTANT as legal wh...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Nov 11 13:30:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a70a2f04d6463013921e9ff1bdad0b02b26b880
      https://github.com/llvm/llvm-project/commit/7a70a2f04d6463013921e9ff1bdad0b02b26b880
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-11-11 (Wed, 11 Nov 2020)

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

  Log Message:
  -----------
  [AArch64][GlobalISel] Mark G_FCONSTANT as legal when there is full fp16 support

When there is full fp16 support, there is no reason to widen 16-bit
G_FCONSTANTs to 32 bits. Mark them as legal in this case.

Also, we currently import a pattern for materializing a 16-bit 0.0.
Add a testcase showing we select it.

(All other 16-bit G_FCONSTANTS are not yet selected.)

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




More information about the All-commits mailing list