SimplifyCFG: Omit range checks for switch lookup tables when default is unreachable
authorHans Wennborg <hans@hanshq.net>
Mon, 26 Jan 2015 19:52:34 +0000 (19:52 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 26 Jan 2015 19:52:34 +0000 (19:52 +0000)
commit325385a37fc7cd6178ec2572a80b9ad9202a32ef
treeffff8ba9039dbae3f3c3f9a63345da9449f6c1e6
parentd5c2318adc7bde590d9f9369ef97fe7adde3f1a4
SimplifyCFG: Omit range checks for switch lookup tables when default is unreachable

The range check would get optimized away later, but we might as well not emit
them in the first place.

http://reviews.llvm.org/D6471

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