llvm-6502/lib
Bob Wilson 704d1347c5 Extend SROA to handle arrays accessed as homogeneous structs and vice versa.
This is a minor extension of SROA to handle a special case that is
important for some ARM NEON operations.  Some of the NEON intrinsics
return multiple values, which are handled as struct types containing
multiple elements of the same vector type.  The corresponding return
types declared in the arm_neon.h header have equivalent arrays.  We
need SROA to recognize that it can split up those arrays and structs
into separate vectors, even though they are not always accessed with
the same type.  SROA already handles loads and stores of an entire
alloca by using insertvalue/extractvalue to access the individual
pieces, and that code works the same regardless of whether the type
is a struct or an array.  So, all that needs to be done is to check
for compatible arrays and homogeneous structs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123381 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-13 17:45:11 +00:00
..
Analysis Remove some wrong code which fortunately was never executed (as explained in 2011-01-13 10:43:08 +00:00
Archive
AsmParser Reject uses of unnamed_addr in declarations. 2011-01-13 01:30:30 +00:00
Bitcode
CodeGen
CompilerDriver
ExecutionEngine
Linker Keep unnamed_addr when linking. 2011-01-13 05:12:34 +00:00
MC Model :upper16: and :lower16: as ARM specific MCTargetExpr. This is a step 2011-01-13 07:58:56 +00:00
Object
Support
Target Model :upper16: and :lower16: as ARM specific MCTargetExpr. This is a step 2011-01-13 07:58:56 +00:00
Transforms Extend SROA to handle arrays accessed as homogeneous structs and vice versa. 2011-01-13 17:45:11 +00:00
VMCore Reject uses of unnamed_addr in declarations. 2011-01-13 01:30:30 +00:00
Makefile