[PATCH] LowerSwitch: replace unreachable default with popular case destination

Marcello Maggioni hayarms at gmail.com
Thu Jan 15 17:44:43 PST 2015


Hi Hans, thanks for your work on this! I'm looking into your patch now :-)

Marcello

2015-01-15 17:13 GMT-08:00 Hans Wennborg <hans at chromium.org>:

> Updating the patch to handle the situation where all cases get moved to
> the default, and simplifying the code a little.
>
>
> http://reviews.llvm.org/D6697
>
> Files:
>   lib/Transforms/Utils/LowerSwitch.cpp
>   test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll
>   test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150115/0061e4e4/attachment.html>


More information about the llvm-commits mailing list