[PATCH] D94171: [SVE][CodeGen] Fix legalisation of floating-point masked gathers

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 05:32:30 PST 2021


kmclaughlin created this revision.
kmclaughlin added reviewers: sdesmalen, david-arm, efriedma.
Herald added subscribers: NickHung, psnobl, hiraditya, tschuett.
kmclaughlin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94171

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94171.314867.patch
Type: text/x-patch
Size: 8788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210106/a4e13e28/attachment.bin>


More information about the llvm-commits mailing list