[PATCH] [SwitchLowering] Handle multiple destinations on condensed case stmts

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Wed Nov 26 03:23:55 PST 2014


Hi ributzka, grosbach, marcello.maggioni,

Switch cases statements with sequential values that branch to the same
destination BB may often be handled together in a single new source
BB. In this scenario we need to remove remaining incoming values from
PHI instructions in the destination BB, as to match the number of source
branches.

http://reviews.llvm.org/D6415

Files:
  lib/Transforms/Utils/LowerSwitch.cpp
  test/Transforms/Util/lowerswitch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6415.16642.patch
Type: text/x-patch
Size: 4322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141126/dc9ad1e8/attachment.bin>


More information about the llvm-commits mailing list