Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bp update #422

Merged
merged 193 commits into from
Aug 29, 2024
Merged

Bp update #422

merged 193 commits into from
Aug 29, 2024

Conversation

ABenC377
Copy link
Contributor

@ABenC377 ABenC377 commented Aug 23, 2024

This update to the branch predictors (both Perceptron and Generic) replaces the hashmap that was previously being used to keep previous-state information between predict and update with a queue (called a Fetch Target Queue or FTQ) of previous-state information for the in-flight branches. The FTQ allows speculative updating of the global history (which is also included in this PR).

In terms of performance, it seems to be quite lateral. a full breakdown of stats across our benchmark suite is provided below. To summarise the results, most benchmarks have an improved misprediction rate with the update, but the changes in execution time are hit and miss with many becoming a bit slower (probably due to an increased number of interactions with the branch predictor through the pipeline).

I think this is still a worthwhile change to make to SimEng even though there isn't a clear-cut performance upgrade because it makes the flow of branches through the branch predictor more regular and so should facilitate more complicated branch predictors in the future (e.g., TAGE).

…n with branch metrics reported by PMU events in A64FX
@ABenC377 ABenC377 self-assigned this Aug 23, 2024
@ABenC377 ABenC377 added enhancement New feature or request 0.9.7 Part of SimEng Release 0.9.7 labels Aug 23, 2024
@ABenC377 ABenC377 linked an issue Aug 23, 2024 that may be closed by this pull request
@ABenC377 ABenC377 requested review from FinnWilkinson, jj16791, dANW34V3R and JosephMoore25 and removed request for FinnWilkinson August 23, 2024 15:29
@ABenC377 ABenC377 merged commit 05fdd87 into dev Aug 29, 2024
2 checks passed
@ABenC377 ABenC377 deleted the BP_update branch August 29, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.7 Part of SimEng Release 0.9.7 enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fix branch predictor flow (disappearing branches)
5 participants