[PATCH] LowerSwitch: replace unreachable default with popular case destination
Hans Wennborg
hans at chromium.org
Thu Jan 15 17:13:19 PST 2015
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 --------------
A non-text attachment was scrubbed...
Name: D6697.18283.patch
Type: text/x-patch
Size: 6965 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150116/91cfdbcf/attachment.bin>
More information about the llvm-commits
mailing list