llvm-6502/lib
Hans Wennborg e03d9e4ec7 Do simple constant propagation in lookup table formation for switches
By propagating the value for the switch condition, LLVM can now build
lookup tables for code such as:

  switch (x) {
    case 1: return 5;
    case 2: return 42;
    case 3: case 4: case 5:
      return x - 123;
    default:
      return 123;
  }

Given that x is known for each case, "x - 123" becomes a constant for
cases 3, 4, and 5.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167115 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-31 13:42:45 +00:00
..
Analysis Fix a couple of comment typos. 2012-10-31 11:25:32 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Change ForceSizeOpt attribute into MinSize attribute 2012-10-30 16:32:52 +00:00
Bitcode Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
CodeGen Change signature of function RAFast::spillAll to avoid conversion between 2012-10-31 00:56:01 +00:00
DebugInfo Reformat and 80-column this. It's not strictly conforming 2012-10-30 21:36:43 +00:00
ExecutionEngine Fix regression in old-style JIT. 2012-10-30 22:21:55 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC [ms-inline asm] Add support for the TYPE operator. 2012-10-26 18:04:20 +00:00
Object Add interface for querying object files for symbol values. 2012-10-29 10:47:00 +00:00
Support Add support for Cortex-A15 host recognition. 2012-10-31 09:07:37 +00:00
TableGen Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Target Implement ADJCALLSTACKUP and ADJCALLSTACKDOWN 2012-10-31 05:21:10 +00:00
Transforms Do simple constant propagation in lookup table formation for switches 2012-10-31 13:42:45 +00:00
VMCore Change ForceSizeOpt attribute into MinSize attribute 2012-10-30 16:32:52 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile