[PATCH] D87651: [AArch64][SVE] Implement extractelement of i1 vectors.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 16:18:48 PDT 2020


efriedma created this revision.
efriedma added reviewers: paulwalker-arm, sdesmalen, cameron.mcinally.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a project: LLVM.
efriedma requested review of this revision.

The implementation just extends the vector to a larger element type, and extracts from that.  Not fancy, but generates reasonable code.

While I'm here, fix warning from computeKnown bits, and implement the obvious patterns for extracting from element zero.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87651

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/test/CodeGen/AArch64/sve-extract-element.ll
  llvm/test/CodeGen/AArch64/sve-insert-element.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87651.291726.patch
Type: text/x-patch
Size: 8062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200914/f28e82de/attachment.bin>


More information about the llvm-commits mailing list