[PATCH] D21291: [SimplifyCFG] Range reduce switches

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 07:34:27 PDT 2016


jmolloy updated this revision to Diff 60973.
jmolloy added a comment.

Hi Eli,

That rotate trick is, quite simply, brilliant.

New version uses SelectionDAG - I'll factor some of the machinery out at a later date when I implement this for lookup table formation too.

All comments should now be addressed.

Cheers,

James


Repository:
  rL LLVM

http://reviews.llvm.org/D21291

Files:
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  test/CodeGen/ARM/rangereduce-switch.ll
  test/CodeGen/X86/switch-edge-weight.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21291.60973.patch
Type: text/x-patch
Size: 13563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160616/e20ab311/attachment.bin>


More information about the llvm-commits mailing list