Next stage into switch lowering refactoring
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 9 Apr 2007 12:31:58 +0000 (12:31 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 9 Apr 2007 12:31:58 +0000 (12:31 +0000)
commit4198c58c716cbe4516ac3a1a407a3cd52548bc3b
tree2f882fff2ed6033f49d957cde2b4f4cc12cedb4d
parenta9f120bd9f208f8e7ed03c02cc63b2f487edb84f
Next stage into switch lowering refactoring
1. Fix some bugs in the jump table lowering threshold
2. Implement much better metric for optimal pivot selection
3. Tune thresholds for different lowering methods
4. Implement shift-and trick for lowering small (<machine word
length) cases with few destinations. Good testcase will follow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35816 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/Generic/2007-02-16-BranchFold.ll
test/CodeGen/Generic/switch-lower-feature.ll