llvm-6502/test
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 SCEV: Add MarkPendingLoopPredicates to avoid recursive isImpliedCond. 2012-05-19 00:48:25 +00:00
Archive
Assembler Add half support to LLVM (for OpenCL) 2012-05-24 15:59:06 +00:00
Bindings/Ocaml
Bitcode Recommited r156374 with critical fixes in BitcodeReader/Writer: 2012-05-12 10:48:17 +00:00
BugPoint
CodeGen SelectionDAGBuilder: When emitting small compare chains for switches order them by using edge weights. 2012-05-26 20:01:32 +00:00
DebugInfo Add support for C++11 enum classes in llvm. 2012-05-23 00:09:20 +00:00
ExecutionEngine Temporarily disabled the MCJIT tests for Darwin, because the RuntimeDyldMachO has a problems with relocations for 32bit x86. 2012-05-18 00:30:58 +00:00
Feature
Instrumentation
Integer
Linker
MC Refactor data-in-code annotations. 2012-05-18 19:12:01 +00:00
Object
Other Teach the 'opt' tool about '-Os' and '-Oz', corresponding to the Clang 2012-05-16 08:32:49 +00:00
Scripts
TableGen Add support for range expressions in TableGen foreach loops. 2012-05-24 22:17:39 +00:00
Transforms Since commit 157467, if reassociate isn't actually going to change an expression 2012-05-26 16:42:52 +00:00
Unit
Verifier
YAMLParser
CMakeLists.txt - Added ExecutionEngine/MCJIT tests 2012-05-17 21:07:47 +00:00
lit.cfg
lit.site.cfg.in - Added ExecutionEngine/MCJIT tests 2012-05-17 21:07:47 +00:00
Makefile - Added ExecutionEngine/MCJIT tests 2012-05-17 21:07:47 +00:00
Makefile.tests
site.exp.in
TestRunner.sh