llvm-project/llvm/test/Transforms/GlobalOpt
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
..
2004-10-10-CastStoreOnce.ll
2005-06-15-LocalizeConstExprCrash.ll
2005-09-27-Crash.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
2006-07-07-InlineAsmCrash.ll
2006-11-01-ShrinkGlobalPhiCrash.ll
2007-04-05-Crash.ll manually upgrade a bunch of tests to modern syntax, and remove some that 2011-06-17 03:14:27 +00:00
2007-05-13-Crash.ll
2007-06-04-PackedStruct.ll
2007-11-09-GEP-GEP-Crash.ll
2008-01-03-Crash.ll
2008-01-13-OutOfRangeSROA.ll
2008-01-29-VolatileGlobal.ll
2008-02-16-NestAttr.ll
2008-04-26-SROA-Global-Align.ll Add unnamed_addr when we can show that address of a global is not used. 2011-01-19 16:32:21 +00:00
2008-07-17-addrspace.ll more test cleanup 2010-09-02 22:38:56 +00:00
2008-12-16-HeapSRACrash-2.ll manually upgrade a bunch of tests to modern syntax, and remove some that 2011-06-17 03:14:27 +00:00
2008-12-16-HeapSRACrash.ll manually upgrade a bunch of tests to modern syntax, and remove some that 2011-06-17 03:14:27 +00:00
2009-01-13-phi-user.ll
2009-02-15-BitcastAlias.ll
2009-02-15-ResolveAlias.ll
2009-03-05-dbg.ll
2009-03-06-Anonymous.ll
2009-03-07-PromotePtrToBool.ll Add unnamed_addr when we can show that address of a global is not used. 2011-01-19 16:32:21 +00:00
2009-06-01-RecursivePHI.ll
2009-11-16-BrokenPerformHeapAllocSRoA.ll
2009-11-16-MallocSingleStoreToGlobalVar.ll Add unnamed_addr when we can show that address of a global is not used. 2011-01-19 16:32:21 +00:00
2010-02-25-MallocPromote.ll
2010-02-26-MallocSROA.ll
2010-10-19-WeakOdr.ll GlobalOpt: EvaluateFunction() must not evaluate stores to weak_odr globals. 2010-10-19 16:47:23 +00:00
2011-04-09-EmptyGlobalCtors.ll Add back a couple checks removed by r129128; the fact that an intitializer 2011-04-09 09:11:09 +00:00
alias-resolve.ll
basictest.ll
constantexpr-dangle.ll
constantfold-initializers.ll
crash.ll fix PR9856, an incorrectly conservative assertion: a global can be 2011-05-22 07:15:13 +00:00
ctor-list-opt-constexpr.ll reapply r121100 with a tweak to constant fold ConstExprs with TargetData 2010-12-07 04:33:29 +00:00
ctor-list-opt-inbounds.ll
ctor-list-opt.ll Reduce and merge testcases. 2011-01-16 09:13:31 +00:00
cxx-dtor.ll Add an optimization to GlobalOpt that eliminates calls to __cxa_atexit, if the function passed is empty. 2011-03-20 17:59:11 +00:00
deadglobal-2.ll
deadglobal.ll
dg.exp
globalsra-partial.ll
globalsra-unknown-index.ll Add unnamed_addr when we can show that address of a global is not used. 2011-01-19 16:32:21 +00:00
globalsra.ll
heap-sra-1.ll
heap-sra-2.ll
heap-sra-3.ll
heap-sra-4.ll
heap-sra-phi.ll
integer-bool.ll
iterate.ll
load-store-global.ll
malloc-promote-1.ll
malloc-promote-2.ll Trim tests and convert to FileCheck. 2010-04-14 20:22:17 +00:00
memcpy.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
memset-null.ll Add testcase for r132290, to check for the crasher caught by the buildbots 2011-05-29 19:41:14 +00:00
memset.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
metadata.ll Use llvm.foo as the intrinsic, rather than llvm.dbg.value. Since the 2010-05-04 20:09:25 +00:00
phi-select.ll
storepointer-compare.ll
storepointer.ll
trivialstore.ll
undef-init.ll
unnamed-addr.ll Add unnamed_addr when we can show that address of a global is not used. 2011-01-19 16:32:21 +00:00