llvm-project/llvm/test/Transforms/ConstProp
Chris Lattner b1ed91f397 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.

llvm-svn: 134829
2011-07-09 17:41:24 +00:00
..
2002-05-03-DivideByZeroException.ll
2002-05-03-NotOperator.ll Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
2002-09-03-SetCC-Bools.ll
2003-05-12-DivideError.ll
2005-01-28-SetCCGEP.ll
2006-11-30-vector-cast.ll
2006-12-01-TruncBoolBug.ll
2006-12-01-bool-casts.ll
2007-02-05-BitCast.ll
2007-02-23-sdiv.ll
2007-11-23-cttz.ll
2008-07-07-VectorCompare.ll
2009-06-20-constexpr-zero-lhs.ll
2009-09-01-GEP-Crash.ll
basictest.ll Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
bitcast.ll rename test. 2010-11-14 07:03:49 +00:00
bswap.ll
calls.ll implement PR9315, constant folding exp2 in terms of pow (since hosts without 2011-05-22 22:22:35 +00:00
constant-expr.ll Add the select optimization recently added to instcombine to constant folding. 2011-01-29 20:35:06 +00:00
dg.exp
div-zero.ll
extractvalue.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
float-to-ptr-cast.ll Convert a few tests to FileCheck for PR5307. 2009-10-26 22:52:03 +00:00
insertvalue.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
loads.ll When loading from a constant, fold inttoptr if the integer type and the resulting pointer type both have the same size. 2011-02-06 20:11:56 +00:00
logicaltest.ll Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
overflow-ops.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
phi.ll Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
remtest.ll