llvm-6502/lib/Transforms
Hans Wennborg 89fa06ba0f Switch-to-lookup tables: set threshold to 3 cases
There has been an old FIXME to find the right cut-off for when it's worth
analyzing and potentially transforming a switch to a lookup table.

The switches always have two or more cases. I could not measure any speed-up
by transforming a switch with two cases. A switch with three cases gets a nice
speed-up, and I couldn't measure any compile-time regression, so I think this
is the right threshold.

In a Clang self-host, this causes 480 new switches to be transformed,
and reduces the final binary size with 8 KB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199294 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-15 05:00:27 +00:00
..
Hello Set LLVM_EXPORTED_SYMBOL_FILE in CMakeLists whose corresponding Makefiles do so. 2013-12-29 23:06:49 +00:00
InstCombine Do pointer cast simplifications on addrspacecast 2014-01-14 20:00:45 +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 Make nocapture analysis work with addrspacecast 2014-01-14 19:11:52 +00:00
ObjCARC [PM] Split DominatorTree into a concrete analysis result object which 2014-01-13 13:07:17 +00:00
Scalar [PM] Split DominatorTree into a concrete analysis result object which 2014-01-13 13:07:17 +00:00
Utils Switch-to-lookup tables: set threshold to 3 cases 2014-01-15 05:00:27 +00:00
Vectorize LoopVectorize: Only strip casts from integer types when replacing symbolic 2014-01-15 03:35:46 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile