[PATCH] SimplifyCFG: don't remove unreachable defaults from switch instructions; exploit them instead!

Hans Wennborg hans at chromium.org
Thu Dec 4 15:44:15 PST 2014


Addressing David's patches.

http://reviews.llvm.org/D6471

Files:
  lib/Transforms/Utils/Local.cpp
  lib/Transforms/Utils/SimplifyCFG.cpp
  test/Transforms/SimplifyCFG/UnreachableEliminate.ll
  test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
  test/Transforms/SimplifyCFG/switch-range-to-icmp.ll
  test/Transforms/SimplifyCFG/switch-to-select-two-case.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6471.16960.patch
Type: text/x-patch
Size: 17179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141204/3be517d4/attachment.bin>


More information about the llvm-commits mailing list