Also optimize large switch statements.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 25 Oct 2012 18:51:15 +0000 (18:51 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 25 Oct 2012 18:51:15 +0000 (18:51 +0000)
commit977f41a1fa59503fbb9383a4c5e7d27cbb734fe7
treed799c75c21328205d1e2985afb98f25d877e2460
parentd814a05f6b29351d6e05edf42d9bfd668f9993be
Also optimize large switch statements.

The isValueEqualityComparison() guard at the top of SimplifySwitch()
only applies to some of the possible transformations.

The newer transformations work just fine on large switches, and the
check on predecessor count is nonsensical.

llvm-svn: 166710
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll