Don't build switch tables for dllimport and TLS variables in GEPs
authorHans Wennborg <hans@hanshq.net>
Thu, 26 Jun 2014 00:30:52 +0000 (00:30 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 26 Jun 2014 00:30:52 +0000 (00:30 +0000)
commit0545f16700b4757fa9523e9de199a101d16e6996
treeb547bc8520326ab8cd7e4d6c215ad84ced191b97
parent45f166017c803d0fe1e24ad0f1a3f0a6989489e4
Don't build switch tables for dllimport and TLS variables in GEPs

This is a follow-up to r211331, which failed to notice that we were
returning early from ValidLookupTableConstant for GEPs.

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