llvm-6502/lib/Transforms
Hans Wennborg 19236d53eb Switch-to-lookup tables: Don't require a result for the default
case when the lookup table doesn't have any holes.

This means we can build a lookup table for switches like this:

  switch (x) {
    case 0: return 1;
    case 1: return 2;
    case 2: return 3;
    case 3: return 4;
    default: exit(1);
  }

The default case doesn't yield a constant result here, but that doesn't matter,
since a default result is only necessary for filling holes in the lookup table,
and this table doesn't have any holes.

This makes us transform 505 more switches in a clang bootstrap, and shaves 164 KB
off the resulting clang binary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199025 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-12 00:44:41 +00:00
..
Hello Set LLVM_EXPORTED_SYMBOL_FILE in CMakeLists whose corresponding Makefiles do so. 2013-12-29 23:06:49 +00:00
InstCombine Fix a bug about generating undef operand when optimising shuffle vector and insert element in instruction combine. 2014-01-08 03:06:15 +00:00
Instrumentation Move the LLVM IR asm writer header files into the IR directory, as they 2014-01-07 12:34:26 +00:00
IPO Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
ObjCARC Correct word hyphenations 2013-12-05 05:44:44 +00:00
Scalar Extend and simplify the sample profile input file. 2014-01-10 23:23:51 +00:00
Utils Switch-to-lookup tables: Don't require a result for the default 2014-01-12 00:44:41 +00:00
Vectorize LoopVectorizer: Enable strided memory accesses versioning per default 2014-01-11 20:40:34 +00:00
CMakeLists.txt Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00
LLVMBuild.txt Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00
Makefile Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00