Enable unaligned memory access on PPC for scalar types
authorHal Finkel <hfinkel@anl.gov>
Fri, 15 Mar 2013 15:27:13 +0000 (15:27 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 15 Mar 2013 15:27:13 +0000 (15:27 +0000)
commit2d37f7b979a24930c444f9783173a90a6e548118
treea30c316b5d17f708c2c44d5d0461baa8452e1622
parentc0d8dc0eb6e1df872affadba01f60e42275e2863
Enable unaligned memory access on PPC for scalar types

Unaligned access is supported on PPC for non-vector types, and is generally
more efficient than manually expanding the loads and stores.

A few of the existing test cases were using expanded unaligned loads and stores
to test other features (like load/store with update), and for these test cases,
unaligned access remains disabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/lbzux.ll
test/CodeGen/PowerPC/structsinmem.ll
test/CodeGen/PowerPC/structsinregs.ll
test/CodeGen/PowerPC/stwu8.ll
test/CodeGen/PowerPC/unaligned.ll [new file with mode: 0644]