OSDN Git Service

[Codegen] Decrease minimum jump table density.
authorKyle Butt <kyle+llvm@iteratee.net>
Tue, 29 Mar 2016 00:23:41 +0000 (00:23 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Tue, 29 Mar 2016 00:23:41 +0000 (00:23 +0000)
commitb76dcf45e6b9cb82d54d5de6e42c6cd61036d910
treee5d81833c03c00868b2280f7a1610ff3bae6e8a6
parent418032a1c85f32ac97e0c3905889ccf96378362e
[Codegen] Decrease minimum jump table density.

Minimum density for both optsize and non optsize are now options
-sparse-jump-table-density (default 10) for non optsize functions
-dense-jump-table-density (default 40) for optsize functions, which
matches the current default. This improves several benchmarks at google
at the cost of a small codesize increase. For code compiled with -Os,
the old behavior continues

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264689 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
test/CodeGen/ARM/2011-08-25-ldmia_ret.ll
test/CodeGen/Generic/MachineBranchProb.ll
test/CodeGen/PowerPC/pr26690.ll
test/CodeGen/Thumb2/ldr-str-imm12.ll
test/CodeGen/X86/switch-bt.ll
test/CodeGen/X86/switch-density.ll [new file with mode: 0644]
test/CodeGen/X86/switch-edge-weight.ll
test/CodeGen/X86/switch.ll