llvm/test/CodeGen
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
..
ARM [arm-fast-isel] Add support for non-global callee. 2012-05-23 18:38:57 +00:00
CellSPU Flip the new block-placement pass to be on by default. 2012-04-16 13:49:17 +00:00
CPP Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
Generic revert my previous patches that introduced an additional parameter to the objectsize intrinsic. 2012-05-22 15:25:31 +00:00
Hexagon Enable all Hexagon tests. 2012-05-15 16:13:12 +00:00
MBlaze Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
Mips Turn on mips16 pseudo op when compiling for mips16. 2012-05-24 18:37:43 +00:00
MSP430 Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
NVPTX [NVPTX] Add a new test case for the newly-enabled call handling 2012-05-25 17:20:38 +00:00
PowerPC Add a missing PPC 64-bit stwu pattern. 2012-05-20 17:11:24 +00:00
SPARC Regression test for PR2960. 2012-05-01 11:11:34 +00:00
Thumb Make test less fragile. 2012-04-27 20:48:18 +00:00
Thumb2 Add a test case for global live range splitting. 2012-05-23 23:42:23 +00:00
X86 SelectionDAGBuilder: When emitting small compare chains for switches order them by using edge weights. 2012-05-26 20:01:32 +00:00
XCore Flip the new block-placement pass to be on by default. 2012-04-16 13:49:17 +00:00