[PATCH] Switch To Select optimization , fixed case with multiple incoming edges from same block

Marcello Maggioni hayarms at gmail.com
Mon Oct 13 16:01:01 PDT 2014


Added a test that uses Joerg code to check that we handle correctly the case with multiple incoming edges for the same block.

http://reviews.llvm.org/D5746

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-multiple-edge-per-block-phi.ll
  test/Transforms/SimplifyCFG/switch-to-select-two-case.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5746.14838.patch
Type: text/x-patch
Size: 11796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141013/90968ad5/attachment.bin>


More information about the llvm-commits mailing list