HomePhabricator

[PowerPC] Match vec_revb builtins to P9 instructions.

Description

[PowerPC] Match vec_revb builtins to P9 instructions.

Power9 has instructions that will reverse the bytes within an element for all
sizes (half-word, word, double-word and quad-word). These can be used for the
vec_revb builtins in altivec.h. However, we implement these to match vector
shuffle nodes as that will cover both the builtins and vector shuffles that
occur in the SDAG through other means.

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

Details

Committed
jtonyJun 12 2017, 11:24 AM
Differential Revision
D33690: [PowerPC] Match vec_revb builtins to P9 instructions.
Parents
rL305213: Add regression test for r305179.
Branches
Unknown
Tags
Unknown