[PATCH] LowerSwitch: replace unreachable default with popular case destination
hans at chromium.org
Fri Jan 16 22:46:19 PST 2015
> If we instead , before running your algorithm, we collect the ranges that are true unreachable gaps and use this information in the lowering algorithm to make the best assumptions between upper and lower bounds I think we can reach the optimum.
That sounds like a good idea. I've uploaded a patch that does this. It might need some polish, but please take a look and let me know if you think it's on the right track.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13929 bytes
Desc: not available
More information about the llvm-commits