[PATCH] D126487: [SVE] Fixed custom lowering of ISD::INSERT_SUBVECTOR.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 09:49:23 PDT 2022


paulwalker-arm created this revision.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.

LowerINSERT_SUBVECTOR emits AArch64ISD::UUNPK## when lowering
scalable vector floating point INSERT_SUBVECTOR. However, these
nodes only make sense for integer types and thus isel patterns do
not exist for floating point, which leads to isel failures.

This patch ensures floating point operands are cast to integer
before the core lowering takes place.

Fixes: #55037


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126487

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-insert-vector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126487.432316.patch
Type: text/x-patch
Size: 13870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220526/3eb597f6/attachment.bin>


More information about the llvm-commits mailing list