[PATCH] D39262: [CodeGen] Peel off the dominant case in switch statement in lowering

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 15:04:36 PST 2017


xur updated this revision to Diff 121797.
xur added a comment.

Add a test case that tests merging adjacent cases.

Thanks!


https://reviews.llvm.org/D39262

Files:
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  test/CodeGen/Generic/MachineBranchProb.ll
  test/CodeGen/Generic/switch-lower-peel-top-case.ll
  test/CodeGen/SystemZ/loop-03.ll
  test/CodeGen/X86/switch-bt.ll
  test/CodeGen/X86/switch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39262.121797.patch
Type: text/x-patch
Size: 13414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171106/aa6c036a/attachment.bin>


More information about the llvm-commits mailing list