Skip to content

Bp update#422

Merged
ABenC377 merged 193 commits intodevfrom
BP_update
Aug 29, 2024
Merged

Bp update#422
ABenC377 merged 193 commits intodevfrom
BP_update

Conversation

@ABenC377
Copy link
Copy Markdown
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).

ABenC377 added 30 commits July 9, 2024 16:34
…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, JosephMoore25, dANW34V3R and jj16791 and removed request for FinnWilkinson August 23, 2024 15:29
@ABenC377 ABenC377 merged commit 05fdd87 into dev Aug 29, 2024
@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