Commit Graph

2 Commits

Author SHA1 Message Date
QingShan Zhang f99297176c [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
2019-12-11 07:25:57 +00:00
QingShan Zhang 03e7fb2e07 [NFC][Test] Add the vavg test for PowerPC 2019-11-18 10:41:47 +00:00