[all-commits] [llvm/llvm-project] c37f68: [SVE][CodeGen] Fix legalisation of floating-point ...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Mon Jan 11 03:28:35 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c37f68a8885cf55e9a6603613a918c4e7474e9af
      https://github.com/llvm/llvm-project/commit/c37f68a8885cf55e9a6603613a918c4e7474e9af
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
    M llvm/test/CodeGen/AArch64/sve-masked-gather-legalize.ll

  Log Message:
  -----------
  [SVE][CodeGen] Fix legalisation of floating-point masked gathers

Changes in this patch:
- When lowering floating-point masked gathers, cast the result of the
  gather back to the original type with reinterpret_cast before returning.
- Added patterns for reinterpret_casts from integer to floating point, and
  concat_vector patterns for bfloat16.
- Tests for various legalisation scenarios with floating point types.

Reviewed By: sdesmalen, david-arm

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




More information about the All-commits mailing list