llvm-6502/test/Transforms/ScalarRepl
Duncan Sands 3cb3650a27 Change uses of getTypeSize to getABITypeSize, getTypeStoreSize
or getTypeSizeInBits as appropriate in ScalarReplAggregates.
The right change to make was not always obvious, so it would
be good to have an sroa guru review this.  While there I noticed
some bugs, and fixed them: (1) arrays of x86 long double have
holes due to alignment padding, but this wasn't being spotted
by HasStructPadding (renamed to HasPadding).  The same goes
for arrays of oddly sized ints.  Vectors also suffer from this,
in fact the problem for vectors is much worse because basic
vector assumptions seem to be broken by vectors of type with
alignment padding.   I didn't try to fix any of these vector
problems.  (2) The code for extracting smaller integers from
larger ones (in the "int union" case) was wrong on big-endian
machines for integers with size not a multiple of 8, like i1.
Probably this is impossible to hit via llvm-gcc, but I fixed
it anyway while there and added a testcase.  I also got rid of
some trailing whitespace and changed a function name which
had an obvious typo in it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43672 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-04 14:43:57 +00:00
..
2003-05-29-ArrayFail.ll For PR1319: 2007-04-15 09:21:47 +00:00
2003-05-30-InvalidIndices.ll
2003-05-30-MultiLevel.ll
2003-09-12-IncorrectPromote.ll For PR1319: 2007-04-15 09:21:47 +00:00
2003-10-29-ArrayProblem.ll For PR1319: 2007-04-15 09:21:47 +00:00
2005-12-14-UnionPromoteCrash.ll
2006-01-24-IllegalUnionPromoteCrash.ll
2006-04-20-PromoteCrash.ll
2006-10-23-PointerUnionCrash.ll
2006-11-07-InvalidArrayPromote.ll For PR1319: 2007-04-15 09:21:47 +00:00
2006-12-11-SROA-Crash.ll
2007-03-19-CanonicalizeMemcpy.ll Remove use of implementation keyword. 2007-03-28 02:38:26 +00:00
2007-05-24-LargeAggregate.ll testcase for PR1446 2007-05-24 18:42:47 +00:00
2007-05-29-MemcpyPreserve.ll Testcase for PR1421 2007-05-30 06:10:46 +00:00
2007-11-03-bigendian_apint.ll Change uses of getTypeSize to getABITypeSize, getTypeStoreSize 2007-11-04 14:43:57 +00:00
AggregatePromote.ll For PR1319: 2007-04-16 17:36:08 +00:00
arraytest.ll
badarray.ll
basictest.ll
dg.exp For PR1319: 2007-04-15 09:21:47 +00:00
DifferingTypes.ll Move Mem2Reg/DifferingTypes.ll -> ScalarRepl/DifferingTypes.ll. -scalarrepl 2007-05-05 22:22:03 +00:00
memcpy-from-global.ll new testcase, should be able to eliminate the alloca and memcpy 2007-04-25 06:29:34 +00:00
memset-aggregate-byte-leader.ll For PR1319: 2007-04-15 09:21:47 +00:00
memset-aggregate.ll For PR1319: 2007-04-15 09:21:47 +00:00
phinodepromote.ll
select_promote.ll
sroa_two.ll
union-fp-int.ll For PR1319: 2007-04-15 09:21:47 +00:00
union-packed.ll For PR1319: 2007-04-15 09:21:47 +00:00
union-pointer.ll For PR1319: 2007-04-15 09:21:47 +00:00
vector_promote.ll For PR1319: 2007-04-16 17:36:08 +00:00