By: Rayla (rayla.delete@this.example.com), August 24, 2022 3:04 pm
Room: Moderated Discussions
Kara (karaardalan.delete@this.gmail.com) on August 24, 2022 2:07 pm wrote:
>
> Since like my second year programming I stopped writing branched code totally,
> few tens of thousands lines of code in, I haven't encounter anything that
> intrinsically requires speculative branch prediction, like logically.
>
> But I write only numes.
>
> Is there any program that can't be written without a branching that can't
> be rephrased (literally, all that is is rephrasing) into branchless?
>
> Mind risc-v don't offer BPU, there's extensions but not in the requirements.
RISC-V is an ISA. Branch prediction is a microarchitectural feature. What on earth are you talking about? AFAIK every even-slightly-serious RV core has branch prediction, including the Rocket reference core.
>
> Since like my second year programming I stopped writing branched code totally,
> few tens of thousands lines of code in, I haven't encounter anything that
> intrinsically requires speculative branch prediction, like logically.
>
> But I write only numes.
>
> Is there any program that can't be written without a branching that can't
> be rephrased (literally, all that is is rephrasing) into branchless?
>
> Mind risc-v don't offer BPU, there's extensions but not in the requirements.
RISC-V is an ISA. Branch prediction is a microarchitectural feature. What on earth are you talking about? AFAIK every even-slightly-serious RV core has branch prediction, including the Rocket reference core.