SimplifyCFG: Omit range checks for switch lookup tables when default is unreachable
authorHans Wennborg <hans@hanshq.net>
Mon, 1 Dec 2014 17:08:38 +0000 (17:08 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 1 Dec 2014 17:08:38 +0000 (17:08 +0000)
commit07c6024f487eb3ecbc2905826e9b844088b72c77
tree53c1ec12fbf2b2049515f5dd199fb947a85c083f
parentb2fd9443780e499499a23970981a8c6d62cc6857
SimplifyCFG: Omit range checks for switch lookup tables when default is unreachable

They would get optimized away later, but we might as well not emit them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223051 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll