llvm-6502/lib/Transforms
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
..
Hello
InstCombine Fix isEliminableCastPair to work correctly in the presence of pointers 2012-10-30 16:03:32 +00:00
Instrumentation Remove a wrapper around getIntPtrType added to GVN by Hal in commit 166624 (the 2012-10-29 17:31:46 +00:00
IPO 80-col 2012-10-30 18:37:43 +00:00
Scalar instcombine: Migrate strpbrk optimizations 2012-10-31 04:29:58 +00:00
Utils Do simple constant propagation in lookup table formation for switches 2012-10-31 13:42:45 +00:00
Vectorize LoopVectorize: Do not vectorize loops with tiny constant trip counts. 2012-10-31 03:31:07 +00:00
CMakeLists.txt Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00
LLVMBuild.txt Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00
Makefile Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00