[PATCH] D31085: [InlineCost] Increase the cost of Switch

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 11:06:22 PDT 2017


junbuml updated this revision to Diff 94559.
junbuml added a comment.

Based on Hans' suggestion, checked if switch is suitable for either bit test or jump table. If not suitable for both, use BTree. Please take a look and let me know any comment.


https://reviews.llvm.org/D31085

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  include/llvm/CodeGen/SwitchCaseCluster.h
  lib/Analysis/InlineCost.cpp
  lib/Analysis/TargetTransformInfo.cpp
  lib/CodeGen/SelectionDAG/SwitchCaseCluster.cpp
  test/Transforms/Inline/switch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31085.94559.patch
Type: text/x-patch
Size: 10759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/92f27dba/attachment.bin>


More information about the llvm-commits mailing list