2000 character limit reached
Clustering case statements for indirect branch predictors (1910.02351v3)
Published 6 Oct 2019 in cs.DS, cs.CC, and cs.PF
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(n2) to O(nlogn).
Sponsor
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.