[PATCH] Don't build switch lookup tables for dllimport or TLS variables

Hans Wennborg hans at chromium.org
Thu Jun 19 15:25:12 PDT 2014


> We can just make the predicate be a normal function pointer instead of taking a template argument. This may reduce the amount of code generated without inhibiting the compiler from inlining the lambdas if it thought it were profitable.

Done.

http://reviews.llvm.org/D4220

Files:
  include/llvm/IR/Constant.h
  lib/IR/Constants.cpp
  lib/Transforms/Utils/SimplifyCFG.cpp
  test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4220.10662.patch
Type: text/x-patch
Size: 5326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140619/bc05ad98/attachment.bin>


More information about the llvm-commits mailing list