[PowerPC] Exploit vabsd on P9

Authored by Esme on May 31 2020, 7:29 PM.


[PowerPC] Exploit vabsd on P9

Summary: Exploit vabsd* for for absolute difference of vectors on P9,
for example:
void foo (char *restrict p, char *restrict q, char *restrict t)

for (int i = 0; i < 16; i++)
   t[i] = abs (p[i] - q[i]);

this case should be matched to the HW instruction vabsdub.

Reviewed By: steven.zhang

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

Event Timeline

Eloring <onelirong@gmail.com> committed rG3101601b54fb: [PowerPC] Exploit vabsd on P9 (authored by Esme).May 31 2020, 7:30 PM