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)
commitc3c8d95c51f3741c4d864a0cccf203d4e6c9147d
treec41dca67ac2be5799cf7d4a602d0b8e22d70e52c
parentefa45b2508bc25c7ae8fd2ea855b5e4c17276a6b
Only do switch-to-lookup table transformation when TargetTransformInfo
is available.

llvm-svn: 167552
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/X86/lit.local.cfg [new file with mode: 0644]
llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll [moved from llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll with 99% similarity]
llvm/test/Transforms/SimplifyCFG/switch_create.ll