<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 2:55 PM, Hans Wennborg <span dir="ltr"><<a href="mailto:hans@chromium.org" target="_blank">hans@chromium.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":5vi" class="a3s" style="overflow:hidden">I suspect that if the whole switch can be lowered to a jump table,<br>
that's the best lowering.</div></blockquote></div><br>A well predicted branch can be better than even a well predicted indirect branch in lots of cases. At the IR level it allows predicate based simplification that may be harder. At the machine level, there are different levels of prediction accuracy, and I think the branch is essentially always likely to do better in terms of icache.</div></div>