[AIX] Allow safe for 32bit P9 VSX extract and insert pattern matches
authorZarko Todorovski <zarko@ca.ibm.com>
Mon, 26 Apr 2021 14:50:16 +0000 (10:50 -0400)
committerZarko Todorovski <zarko@ca.ibm.com>
Tue, 27 Apr 2021 11:27:43 +0000 (07:27 -0400)
commitf818ec9dd173bfacd0ee8b403146c26e17271a46
tree6d63d0b86adf7ec24573ecebf3629f48cc636968
parentefd254b63621de9ce750eddf9e8135154099d261
[AIX] Allow safe for 32bit P9 VSX extract and insert pattern matches

In https://reviews.llvm.org/D92789 PPC64 checks were added that disallowed most
VSX pattern matching.  We enable some safe ones for 32bit in this patch.

Reviewed By: nemanjai

Differential Revision: https://reviews.llvm.org/D97503
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/aix-insert-extract.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-p9-insert-extract.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-p9-xxinsertw-xxextractuw.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-vec_extract_p9.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-vec_extract_p9_2.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-vec_insert_elt.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/vec-bswap.ll