← concepts · the commons
branch predictor
also known as branch prediction · branch target predictor
16 moment(s) that assert this concept — showing 1–16 of 16
strong7 independent sources
↣ how this spread over time →GOTO Conferences · youtube · en-US
1A branch predictor tries to guess the direction of program flow before seeing the actual instruction.
“Branch predictor has to make a guess and what it's trying to guess is is there a branch coming up in the sequence of instructions that are coming”
spoken · 365s · 2025-04-16
GOTO Conferences · youtube · en-US
2Correct branch prediction allows the pipeline to continue without discarding work.
“if we can predict that more often than we predict it correctly more often than not then we can actually steer that pipeline in the right direction”
spoken · 383s · 2025-04-16
XBOX Game Dev · youtube · en
3Zen 2 supports 2-way SMT and operates in single-thread or dual-thread mode, with thread selection via round-robin scheduling during branch prediction.
“Zen 2 supports 2-way SMT and may run in either single-thread or dual-thread mode. Program thread select occurs during branch prediction and is typically done using round robin scheduling. Some resources within the core may be shared while in dual-thread mode.”
spoken · 192s · 2021-04-21
Strange Loop Conference · youtube · en
4The branch predictor in CPU hardware predicts the outcome of a branch instruction based on past behavior and allows speculative execution to proceed without waiting for the actual branch resolution.
“it predicts that the branch will not be taken and let's other things go ahead without actually checking it the check will happen eventually and everything will get undone”
spoken · 710s · 2018-10-13
Strange Loop Conference · youtube · en
5A malicious actor can train the branch predictor to consistently predict a specific path, leading the hardware to speculatively execute an unauthorized memory access that is later used to exfiltrate sensitive data.
“the villain uses the cash to exfiltrate by using the secret and in an address you'll note that a one sub X is the secret and we're using that secret value as a subscript in another memory reference”
spoken · 849s · 2018-10-13
PLISS · youtube · en
6Branch predictors can learn to predict the direction of control flow branches based on program behavior, assuming normal execution paths.
“they're gonna learn to predict this branch to go successfully through the access because you're not normally going to go out of bounds in signal and error”
spoken · 306s · 2019-06-13
PLISS · youtube · en
7Hardware branch predictors assume that safety checks will pass and speculatively execute along predicted paths, even when the input is invalid.
“the branch predictor is happily happy to run ahead and just assume that this safety check is going to pass and go ahead and I to keep the excess”
spoken · 340s · 2019-06-13
PLISS · youtube · en
8Branch predictor contains a large number of entries and can leak information through its state
“the branch predictor of course it has some state it has tables these are essentially hash tables looking at what branches address and finding a potential target there can be lots and lots of bits of there there could be thousands of entries in it”
spoken · 544s · 2019-06-13
Lex Fridman · youtube · en
9A single innovative idea in branch prediction has become universally adopted across all modern computers
“every computer in the world now uses it”
spoken · 212s · 2021-02-18
Lex Fridman · youtube · en
10Branch prediction is a fundamental problem in computer design that boils down to uncertainty
“boils down to branch prediction”
spoken · 229s · 2021-02-18
PLISS · youtube · en
11Branch prediction and hardware prefetching in x86 processors are now performed using machine learning models in real time.
“it turns out when you get to branch prediction and hardware prefetching decisions it turns out that that's actually done with machine learning now on the fly”
spoken · 85s · 2019-06-05
Dyalog User Meetings · youtube · en
12Despite the end of clock speed scaling, transistor density continued to double every two years, with additional transistors used for smarter cache and branch prediction systems.
“that was about transistor densely was doubling every two years what happened over that period is we still got all of those extra transistors some of it went to cores but not as much as we thought”
spoken · 334s · 2018-12-07
Dyalog User Meetings · youtube · en
13Modern CPUs incorporate machine learning for branch prediction, representing a shift in how CPU logic is optimized using AI.
“the very latest AMD CPUs have got machine learning inside them for branch prediction”
spoken · 360s · 2018-12-07
RISC-V International · youtube · en
14Boom supports advanced branch prediction mechanisms including a target buffer with return address stack for one-cycle prediction and complex gshare or age-based predictors for three-cycle prediction, all fitting in single-port SRAM.
“there's a lot of neat features in boom just as a few examples you know it has advanced branch prediction so this is a branch target buffer that's associative with a return address stack will give you an answer in one cycle there's more complex gshare or at age based implementation for conditional branch prediction that will give you an answer and three cycles and all of those predictors fit in single port SRAM”
spoken · 110s · 2017-12-09
RISC-V International · youtube · en
15The BTB was changed from a fully associative, fully tagged structure with 30 entries to a partially tagged, SRAM-based structure with 200 entries to improve branch prediction capacity and efficiency.
“we decide to put that into SRAM make this solely associative partially tagged so that way we could have 200 entries in the same frequency”
spoken · 553s · 2017-12-09
RISC-V International · youtube · en
16An additional pipeline stage was introduced to handle branch prediction and target resolution, reducing the computational load on the original fetch cycle.
“we've simply added an extra stage to this pipeline and this vaccines up not being too big of a deal because even though your branch predictor now has an extra cycle your BTB is going to capture a lot of that anyway”
spoken · 578s · 2017-12-09