[PATCH] Switch to Select optimisations - Two Case switch to select

Marcello Maggioni hayarms at gmail.com
Sun Oct 5 11:24:23 PDT 2014


Hi hans,

This optimization is derived from the optimisations in http://reviews.llvm.org/D5525

The optimisations in D5525 are of three kind. This patch contains only one kind (the Convert Two case switch to select), for review.

Checkout D5525 initial comment for a full description of all the optimisations.

http://reviews.llvm.org/D5620

Files:
  lib/Transforms/Utils/SimplifyCFG.cpp
  test/Transforms/SimplifyCFG/UnreachableEliminate.ll
  test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
  test/Transforms/SimplifyCFG/switch-to-select-two-case.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5620.14435.patch
Type: text/x-patch
Size: 10829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141005/641a0075/attachment.bin>


More information about the llvm-commits mailing list