[PATCH] D82669: [ARM] Generate URHADD from (b - (~a)) >> 1

Petre Tudor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 10:55:46 PDT 2020


PetreTudor created this revision.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
PetreTudor added a reviewer: dmgreen.

Teach LLVM to recognize the above pattern, which is usually a
transformation of (a + b + 1) >> 1, where the operands are unsigned
types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82669

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/arm64-vhadd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82669.273779.patch
Type: text/x-patch
Size: 22939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200626/64e59391/attachment.bin>


More information about the llvm-commits mailing list