[all-commits] [llvm/llvm-project] f5d5a7: [AArch64][GlobalISel] Import FMOV patterns rather ...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Fri Feb 26 16:27:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f5d5a7d7eac74e157c613c11945387b8846c18d1
      https://github.com/llvm/llvm-project/commit/f5d5a7d7eac74e157c613c11945387b8846c18d1
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-02-26 (Fri, 26 Feb 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrFormats.td
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/select-fp16-fconstant.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Import FMOV patterns rather than manually selecting it

There are existing patterns for FMOVHi, FMOVSi, and FMOVDi in
AArch64InstrFormats.td.

Importing these allows us to remove the manual selection code for FMOV.

It also allows us to select FMOVHi for non-zero constants when we have full
fp-16 support.

Refactor some of the code in AArch64InstrFormats.td so that we can create
equivalent custom renderers in GlobalISel.

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




More information about the All-commits mailing list