[PowerPC] Emit VMX loads/stores for aligned ops to avoid adding swaps on LE
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 22 Nov 2016 19:02:07 +0000 (19:02 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 22 Nov 2016 19:02:07 +0000 (19:02 +0000)
commitb8e30d6db638e5f1bb14fc76cd68262eb7b16e24
tree981074d2ac5ce9819c2e10d0548039b1219e93ae
parentd1aed9a9e6f4f8dd38d31148272b76db24941071
[PowerPC] Emit VMX loads/stores for aligned ops to avoid adding swaps on LE

This patch corresponds to review:
https://reviews.llvm.org/D26861

It also fixes PR30730.

Committing on behalf of Lei Huang.

llvm-svn: 287679
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/ppc64-i128-abi.ll
llvm/test/CodeGen/PowerPC/swaps-le-1.ll
llvm/test/CodeGen/PowerPC/swaps-le-2.ll
llvm/test/CodeGen/PowerPC/vsx-ldst.ll
llvm/test/CodeGen/PowerPC/vsx.ll