[PATCH] D71002: [PowerPC] Exploitate the Vector Integer Average Instructions

qshanz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 4 02:44:23 PST 2019


steven.zhang created this revision.
steven.zhang added reviewers: nemanjai, jsji, hfinkel, PowerPC.
Herald added subscribers: shchenz, wuzish, kbarton, hiraditya.
Herald added a project: LLVM.

PowerPC has instruction to do the semantics of this piece of code:

  vector int foo(vector int m, vector int n) {
    return (m + n + 1) >> 1;
  }

This patch is adding the match rule to select it.


https://reviews.llvm.org/D71002

Files:
  llvm/lib/Target/PowerPC/PPCInstrAltivec.td
  llvm/test/CodeGen/PowerPC/vavg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71002.232066.patch
Type: text/x-patch
Size: 8018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191204/36d62b7d/attachment.bin>


More information about the llvm-commits mailing list