Only do switch-to-lookup table transformation when TargetTransformInfo
authorHans Wennborg <hans@hanshq.net>
Wed, 7 Nov 2012 21:35:12 +0000 (21:35 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 7 Nov 2012 21:35:12 +0000 (21:35 +0000)
commitb0319962cfdb18da38ef47da621f148fe144b092
tree7ef69b3a6830545f7264a821fbdec697060668b2
parente90a3bcae1cd936aa760cffe5607266279b210d1
Only do switch-to-lookup table transformation when TargetTransformInfo
is available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167552 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/X86/lit.local.cfg [new file with mode: 0644]
test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll [new file with mode: 0644]
test/Transforms/SimplifyCFG/switch_create.ll
test/Transforms/SimplifyCFG/switch_to_lookup_table.ll [deleted file]