arXiv · 1910.02351
Clustering case statements for indirect branch predictors
Abstract
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).
Explore related subjects
Keep this discovery
Evandro Menezes, Sebastian Pop, Aditya Kumar. 2019-10-06. Clustering case statements for indirect branch predictors. https://arxiv.org/abs/1910.02351
Cite the original work for its findings. Save a collection to share your selection of sources.