[all-commits] [llvm/llvm-project] 04fb9b: [AArch64][GlobalISel] Fix incorrect handling of fp...

Amara Emerson via All-commits all-commits at lists.llvm.org
Tue Aug 24 16:07:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04fb9b729a53a5f513328159590d86d28336a6da
      https://github.com/llvm/llvm-project/commit/04fb9b729a53a5f513328159590d86d28336a6da
  Author: Amara Emerson <amara at apple.com>
  Date:   2021-08-24 (Tue, 24 Aug 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/select-store-truncating-float.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/select-with-no-legality-check.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Fix incorrect handling of fp truncating stores.

When the tablegen patterns fail to select a truncating scalar FPR store,
our manual selection code also failed to handle it silently, trying to
generate an invalid copy. Fix this by adding support in the manual code
to generate a proper subreg copy before selecting a non-truncating store.




More information about the All-commits mailing list