arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.02351cs.DScs.CCcs.PF
收藏

间接分支预测器的聚类case语句

Clustering case statements for indirect branch predictors

Evandro Menezes, Sebastian Pop, Aditya Kumar

摘要:

我们提出了一个O(nlogn)的算法来编译一个开关语句到跳转表。为了生成可以由当前硬件分支预测器有效预测的跳转表,我们为每个表添加了条目数量的上限。这种算法的复杂度从O(n^2)降到O(nlogn)。

英文摘要:

We present an O(nlogn) algorithm to compile a switch statement into jump tables. To generate jump tables that can be efficiently predicted by current hardware branch predictors, we added an upper bound on the number of entries for each table. This modification of the previously best known algorithm reduces the complexity from O(n^2) to O(nlogn).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑