]> granicus.if.org Git - llvm/commit
Switch lowering: improve partitioning of jump tables
authorEvandro Menezes <e.menezes@samsung.com>
Tue, 25 Oct 2016 19:11:43 +0000 (19:11 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Tue, 25 Oct 2016 19:11:43 +0000 (19:11 +0000)
commit301f71ecd12264b3cf6254d88d0686fc9303940d
tree26677b945115ffb847804c989bef81d8e84eedea
parentda24afa31cdf7fe71e924861ac088fdfc8763608
Switch lowering: improve partitioning of jump tables

When there's a tie between partitionings of jump tables, consider also cases
that result in no jump tables, but in one or a few cases.  The motivation is
that many contemporary processors typically perform case switches fairly
quickly.

Differential revision: https://reviews.llvm.org/D25212

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285099 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/AArch64/max-jump-table.ll