[PowerPC] Custom Lowering BUILD_VECTOR for v2i64 for P7 as well
authorJinsong Ji <jji@us.ibm.com>
Mon, 12 Jul 2021 17:04:54 +0000 (17:04 +0000)
committerJinsong Ji <jji@us.ibm.com>
Mon, 12 Jul 2021 17:56:10 +0000 (17:56 +0000)
commit2377eca93c03e5de755bcb022b5eb424eec8b512
treef01fd03bf0996494b2f0accc3cfccd62f9bd3cde
parentf21801dab249df506af4c62c70af34a11fa3d3e1
[PowerPC] Custom Lowering BUILD_VECTOR for v2i64 for P7 as well

The lowering for v2i64 is now guarded with hasDirectMove,
however, the current lowering can handle the pattern correctly,
only lowering it when there is efficient patterns and corresponding
instructions.

The original guard was added in D21135, and was for Legal action.
The code has evloved now, this guard is not necessary anymore.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D105596
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/aix-vec-arg-spills-mir.ll
llvm/test/CodeGen/PowerPC/aix-vec-arg-spills.ll
llvm/test/CodeGen/PowerPC/build-vector-allones.ll
llvm/test/CodeGen/PowerPC/load-and-splat.ll
llvm/test/CodeGen/PowerPC/vector-popcnt-128-ult-ugt.ll