[PATCH] D85170: [AArch64][SVE] Widen narrow sdiv/udiv operations.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 16:07:35 PDT 2020


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

The SVE instruction set only supports sdiv/udiv for 32-bit and 64-bit integers.  If we see an 8-bit or 16-bit divide, widen the operands to 32 bits, and narrow the result.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85170

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/test/CodeGen/AArch64/llvm-ir-to-intrinsic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85170.282753.patch
Type: text/x-patch
Size: 10598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/2aaa04dc/attachment.bin>


More information about the llvm-commits mailing list