[all-commits] [llvm/llvm-project] f99297: [PowerPC] Exploitate the Vector Integer Average In...

QingShan Zhang via All-commits all-commits at lists.llvm.org
Tue Dec 10 23:27:26 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f99297176cd9507393b69029406080de01ae41c7
      https://github.com/llvm/llvm-project/commit/f99297176cd9507393b69029406080de01ae41c7
  Author: QingShan Zhang <qshanz at cn.ibm.com>
  Date:   2019-12-11 (Wed, 11 Dec 2019)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrAltivec.td
    M llvm/test/CodeGen/PowerPC/vavg.ll

  Log Message:
  -----------
  [PowerPC] Exploitate the Vector Integer Average Instructions

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.

Differential Revision: https://reviews.llvm.org/D71002




More information about the All-commits mailing list