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

Hans Wennborg hans at chromium.org
Tue Dec 23 12:17:34 PST 2014


Thanks for your comments!

I'll see if I can rework the patch to be smarter about when to replace the unreachable default. (Probably not until after the holidays though.)

However, SimplifyCFG already does this transformation (I'm trying to remove it to be able to exploit unreachable switches in codegen). Does SimplifyCFG not normally run fore LowerSwitch?


http://reviews.llvm.org/D6697

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list