1998Unpublished venueRequires access

Dynamic history-length fitting: a third level of adaptivity for branch prediction

Toni Juan, Sanji Sanjeevan, Juan J. Navarro

Open publisher page 85 citations

Abstract

Accurate branch prediction is essential for obtaining high pegormance in pipelined superscalar processors that execute instructions speculatively. Some of the best current predictors combine a part of the branch address with a$xed amount of global history of branch outcomes in order to make a prediction. These predictors cannot per$orm uni-formly well across all workloads because the best amount of history to be used depends on the code, the input data and the frequency of context switches. Consequently, all predic-tors that use a$xed history length are therefore unable to pe$orm up to their maximum potential. We introduce a method-called DHLF- that dynami-cally determines the optimum history length during execu-tion, adapting to the specific requirements of any code, in-put data and system workload. Our proposal adds an extra level of adaptivity to two-level adaptive branch predictors. The DHLF method can be applied to any one of the predic-tors that combine global branch history with the branch ad-dress. We apply the DHLF method to gshare (dhlf-gshare) andobtain near-optimal resultsforall ~P~~int95 bench-marks, with and without context switches. Some results are also presentedfor gskewed (dhlf-gskewed), confirming that other predictors can beneJitfrom our proposal. 1.

About this research paper

What this paper is about

Accurate branch prediction is essential for obtaining high pegormance in pipelined superscalar processors that execute instructions speculatively. Some of the best current predictors combine a part of the branch address with a$xed amount of global history of branch outcomes in order to make a prediction. These predictors cannot per$orm uni-formly well across all workloads because the best amount of history to be used depends on the code, the input data and the frequency of context switches. Consequently, all predic-tors that use a$xed history length are therefore unable to pe$orm up to their maximum potential. We introduce a method-called DHLF- that dynami-cally determines the optimum history length during execu-tion, adapting to the specific requirements of any code, in-put data and system workload. Our proposal adds an extra level of adaptivity to two-level adaptive branch predictors. The DHLF method can be applied to any one of the predic-tors that combine global branch history with the branch ad-dress. We apply the DHLF method to gshare (dhlf-gshare) andobtain near-optimal resultsforall ~P~~int95 bench-marks, with and without context switches. Some results are also presentedfor gskewed (dhlf-gskewed), confirming that other predictors can beneJitfrom our proposal. 1.

Why it matters

OpenAlex reports 85 citations for this work. Citation counts describe recorded attention and do not establish research quality.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

Accurate branch prediction is essential for obtaining high pegormance in pipelined superscalar processors that execute instructions speculatively. Some of the best current predictors combine a part of the branch address with a$xed amount of global history of branch outcomes in order to make a prediction. These predictors cannot per$orm uni-formly well across all workloads because the best amount of history to be used depends on the code, the input data and the frequency of context switches. Consequently, all predic-tors that use a$xed history length are therefore unable to pe$orm up to their maximum potential. We introduce a method-called DHLF- that dynami-cally determines the optimum history length during execu-tion, adapting to the specific requirements of any code, in-put data and system workload. Our proposal adds an extra level of adaptivity to two-level adaptive branch predictors. The DHLF method can be applied to any one of the predic-tors that combine global branch history with the branch ad-dress. We apply the DHLF method to gshare (dhlf-gshare) andobtain near-optimal resultsforall ~P~~int95 bench-marks, with and without context switches. Some results are also presentedfor gskewed (dhlf-gskewed), confirming that other predictors can beneJitfrom our proposal. 1.

Key concepts: Branch predictor, Computer science, Workload, Context (archaeology), Code (set theory), Parallel computing, Programming language, Operating system

Related papers

Back to paper searchBrowse research topicsOriginal source
Dynamic history-length fitting: a third level of adaptivity for branch prediction — Research Paper | ScholarLens