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)
commitb03ebfb77ee0a4da44c8191ae0ebcbb3615df939
treec26bb5c203dfb4f54d9eb30f8dae3c79aff67385
parent2251672878c7212c96f16c6f2d30c142f2aae877
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.

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