[all-commits] [llvm/llvm-project] 310160: [PowerPC] Exploit vabsd on P9
Esme via All-commits
all-commits at lists.llvm.org
Sun May 31 19:33:48 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3101601b54fbb8062c179e804974b9fb4e2b7c19
https://github.com/llvm/llvm-project/commit/3101601b54fbb8062c179e804974b9fb4e2b7c19
Author: Li Rong Yi <esme.yi at ibm.com>
Date: 2020-06-01 (Mon, 01 Jun 2020)
Changed paths:
M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
M llvm/test/CodeGen/PowerPC/vec_absd.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list