[PATCH] D79193: [AArch64][SVE] Implement lowering for SIGN_EXTEND etc. of SVE predicates.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 12:21:12 PDT 2020


efriedma created this revision.
efriedma added reviewers: sdesmalen, ctetreau, huihuiz, c-rhodes, kmclaughlin, fpetrogalli, cameron.mcinally.
Herald added subscribers: danielkiss, psnobl, rkruppe, hiraditya, kristof.beyls, tschuett.
Herald added a project: LLVM.

Just convert SIGN_EXTEND to VSELECT, which generates the obvious lowering.

Also, while I'm here, fix the return type of SETCC so we don't try to merge a sign-extend with a SETCC.

The lowering here could be improved a lot; we're missing a lot of patterns for VSELECT of constants.  But that's basically orthogonal.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79193

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/test/CodeGen/AArch64/sve-fcmp.ll
  llvm/test/CodeGen/AArch64/sve-sext-zext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79193.261303.patch
Type: text/x-patch
Size: 11541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/4f8a5f1a/attachment.bin>


More information about the llvm-commits mailing list