[PATCH] D126957: [SVE] Fix incorrect code generation for bitcasts of unpacked vector types.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 04:13:52 PDT 2022


paulwalker-arm created this revision.
Herald added subscribers: psnobl, hiraditya, 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.

Bitcasting between unpacked scalable vector types of different
element counts is not a NOP because the live elements are laid out
differently.

  01234567

e.g. nxv2i32 = XX??XX??

  nxv4f16 = X?X?X?X?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126957

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126957.433996.patch
Type: text/x-patch
Size: 13002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220603/763d76ce/attachment.bin>


More information about the llvm-commits mailing list