llvm-6502/test/Transforms/ScalarRepl
Chris Lattner 1afcace3a3 Land the long talked about "type system rewrite" patch. This
patch brings numerous advantages to LLVM.  One way to look at it
is through diffstat:
 109 files changed, 3005 insertions(+), 5906 deletions(-)

Removing almost 3K lines of code is a good thing.  Other advantages
include:

1. Value::getType() is a simple load that can be CSE'd, not a mutating
   union-find operation.
2. Types a uniqued and never move once created, defining away PATypeHolder.
3. Structs can be "named" now, and their name is part of the identity that
   uniques them.  This means that the compiler doesn't merge them structurally
   which makes the IR much less confusing.
4. Now that there is no way to get a cycle in a type graph without a named
   struct type, "upreferences" go away.
5. Type refinement is completely gone, which should make LTO much MUCH faster
   in some common cases with C++ code.
6. Types are now generally immutable, so we can use "Type *" instead 
   "const Type *" everywhere.

Downsides of this patch are that it removes some functions from the C API,
so people using those will have to upgrade to (not yet added) new API.  
"LLVM 3.0" is the right time to do this.

There are still some cleanups pending after this, this patch is large enough
as-is.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134829 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 17:41:24 +00:00
..
2003-05-29-ArrayFail.ll
2003-09-12-IncorrectPromote.ll
2003-10-29-ArrayProblem.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
2006-11-07-InvalidArrayPromote.ll
2007-05-29-MemcpyPreserve.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2007-11-03-bigendian_apint.ll manually upgrade a bunch of tests to modern syntax, and remove some that 2011-06-17 03:14:27 +00:00
2008-01-29-PromoteBug.ll Add native integer type TargetData to some existing tests. 2011-03-16 00:13:40 +00:00
2008-02-28-SubElementExtractCrash.ll
2008-06-05-loadstore-agg.ll Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
2008-06-22-LargeArray.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2008-08-22-out-of-range-array-promote.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2008-09-22-vector-gep.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2009-02-02-ScalarPromoteOutOfRange.ll
2009-02-05-LoadFCA.ll
2009-03-04-MemCpyAlign.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2009-03-05-Aggre2Scalar-dbg.ll Remove support for parsing the "type i32" syntax for defining a numbered 2011-06-19 00:03:46 +00:00
2009-12-11-NeonTypes.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2010-01-18-SelfCopy.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
2011-05-06-CapturedAlloca.ll Fix PR9820: a read-only call differs from a load in that a load doesn't 2011-05-06 10:30:37 +00:00
2011-06-08-VectorExtractValue.ll When scalar replacement returns a vector type, only accept it if the vector 2011-06-18 06:17:51 +00:00
2011-06-17-VectorPartialMemset.ll When scalar replacement returns a vector type, only accept it if the vector 2011-06-18 06:17:51 +00:00
address-space.ll Fix the second half of PR7437: scalarrepl wasn't preserving 2010-07-08 00:27:05 +00:00
AggregatePromote.ll
arraytest.ll
badarray.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
basictest.ll if an alloca is only ever accessed as a unit, and is accessed with load/store instructions, 2011-01-16 06:18:28 +00:00
bitfield-sroa.ll
copy-aggregate.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
crash.ll Remove support for parsing the "type i32" syntax for defining a numbered 2011-06-19 00:03:46 +00:00
debuginfo-preserved.ll Fix "make check" in Release by removing debug-only options from an 'opt' invocation. 2011-05-24 18:26:09 +00:00
debuginfo.ll Make LoadAndStorePromoter preserve debug info and create llvm.dbg.values when 2011-05-24 03:10:43 +00:00
dg.exp make a couple of changes to the standard pass pipeline: 2011-04-26 20:45:33 +00:00
DifferingTypes.ll
inline-vector.ll Do some simple copy propagation through integer loads and stores when promoting 2011-03-29 05:19:52 +00:00
load-store-aggregate.ll
memcpy-align.ll Remove the arm_aapcscc marker from the tests. It is the default 2010-06-15 19:04:29 +00:00
memcpy-from-global.ll Teach one piece of scalarrepl to handle lifetime markers. When transforming an 2011-06-27 05:40:02 +00:00
memset-aggregate-byte-leader.ll
memset-aggregate.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
nonzero-first-index.ll Generalize SROA to allow the first index of a GEP to be non-zero. Add a 2009-12-22 06:57:14 +00:00
not-a-vector.ll
only-memcpy-uses.ll Only convert allocas to scalars if it is profitable. The profitability metric I 2011-03-16 00:13:44 +00:00
phi-select.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
phinodepromote.ll
select_promote.ll
sroa_two.ll
sroa-fca.ll
union-fp-int.ll
union-packed.ll
union-pointer.ll Add native integer type TargetData to some existing tests. 2011-03-16 00:13:40 +00:00
vector_memcpy.ll
vector_promote.ll Fix another case of <rdar://problem/9184212> that only occurs with code 2011-04-20 21:48:38 +00:00
volatile.ll