llvm/test/Transforms/SROA
Chandler Carruth aa3cb334af Teach the integer-promotion rewrite strategy to be endianness aware.
Sorry for this being broken so long. =/

As part of this, switch all of the existing tests to be Little Endian,
which is the behavior I was asserting in them anyways! Add in a new
big-endian test that checks the interesting behavior there.

Another part of this is to tighten the rules abotu when we perform the
full-integer promotion. This logic now rejects cases where there fully
promoted integer is a non-multiple-of-8 bitwidth or cases where the
loads or stores touch bits which are in the allocated space of the
alloca but are not loaded or stored when accessing the integer. Sadly,
these aren't really observable today as the rest of the pass will
already ensure the invariants hold. However, the latter situation is
likely to become a potential concern in the future.

Thanks to Benjamin and Duncan for early review of this patch. I'm still
looking into whether there are further endianness issues, please let me
know if anyone sees BE failures persisting past this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165219 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-04 10:39:28 +00:00
..
alignment.ll Teach the integer-promotion rewrite strategy to be endianness aware. 2012-10-04 10:39:28 +00:00
basictest.ll Teach the integer-promotion rewrite strategy to be endianness aware. 2012-10-04 10:39:28 +00:00
big-endian.ll Teach the integer-promotion rewrite strategy to be endianness aware. 2012-10-04 10:39:28 +00:00
fca.ll Teach the integer-promotion rewrite strategy to be endianness aware. 2012-10-04 10:39:28 +00:00
lit.local.cfg
phi-and-select.ll Teach the integer-promotion rewrite strategy to be endianness aware. 2012-10-04 10:39:28 +00:00
vector-promotion.ll Teach the integer-promotion rewrite strategy to be endianness aware. 2012-10-04 10:39:28 +00:00