llvm-6502/lib
Benjamin Kramer c511b2a5a1 SelectionDAGBuilder: When emitting small compare chains for switches order them by using edge weights.
SimplifyCFG tends to form a lot of 2-3 case switches when merging branches. Move
the most likely condition to the front so it is checked first and the others can
be skipped. This is currently not as effective as it could be because SimplifyCFG
destroys profiling metadata when merging branches and switches. Merging branch
weight metadata is tricky though.

This code touches at most 3 cases so I didn't use a proper sorting algorithm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157521 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-26 20:01:32 +00:00
..
Analysis Mark some static arrays as const. 2012-05-24 06:35:32 +00:00
Archive Include cstdio in a few place that depended on getting it transitively through StringExtras.h 2012-03-23 11:35:30 +00:00
AsmParser Silence Clang's -Wlogical-op-parentheses warning. 2012-05-24 17:11:00 +00:00
Bitcode revert r156383: removal of TYPE_CODE_FUNCTION_OLD 2012-05-23 15:19:39 +00:00
CodeGen SelectionDAGBuilder: When emitting small compare chains for switches order them by using edge weights. 2012-05-26 20:01:32 +00:00
DebugInfo Fix a C++11 UDL conflict. 2012-04-04 20:33:56 +00:00
ExecutionEngine Make it so that the MArch, MCPU, MAttrs passed to EngineBuilder are actually used. 2012-05-21 16:57:17 +00:00
Linker Supply a C interface to the "LinkModules" method. 2012-05-09 08:55:40 +00:00
MC Compress MCRegisterInfo register name tables. 2012-05-25 00:21:41 +00:00
Object Mark some static arrays as const. 2012-05-24 06:35:32 +00:00
Support Remove the PTX back-end and all of its artifacts (triple, etc.) 2012-05-24 21:38:21 +00:00
TableGen Add support for range expressions in TableGen foreach loops. 2012-05-24 22:17:39 +00:00
Target Fix predicate HasStandardEncoding in MipsInstrInfo.td per suggestion of 2012-05-25 22:15:15 +00:00
Transforms Since commit 157467, if reassociate isn't actually going to change an expression 2012-05-26 16:42:52 +00:00
VMCore Add half support to LLVM (for OpenCL) 2012-05-24 15:59:06 +00:00
CMakeLists.txt Move TableGen's parser and entry point into a library 2011-10-01 16:41:13 +00:00
LLVMBuild.txt LLVMBuild: Introduce a common section which currently has a list of the 2011-12-12 22:45:54 +00:00
Makefile Remove more of llvmc and dependencies. 2011-09-20 00:34:27 +00:00