Do we need branch prediction?

By: Kara (karaardalan.delete@this.gmail.com), August 24, 2022 1:07 pm
Room: Moderated Discussions

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.
 Next Post in Thread >
TopicPosted ByDate
Do we need branch prediction?Kara2022/08/24 01:07 PM
  Do we need branch prediction?Rayla2022/08/24 02:04 PM
  Do we need branch prediction?Mark Roulo2022/08/24 03:25 PM
    Do we need branch prediction?Paul A. Clayton2022/08/24 05:28 PM
      Do we need branch prediction?Anon2022/08/24 05:52 PM
    Do we need branch prediction?rwessel2022/08/24 05:40 PM
    Do we need branch prediction?ananon2022/08/24 11:56 PM
      Do we need branch prediction?Carlie Coats2022/08/25 06:39 AM
        OT: You wanted rather than Mark Roulo2022/08/25 08:57 AM
          OT: You wanted "pre" rather than "code" rather than Mark Roulo2022/08/25 08:57 AM
            OT: You wanted "pre" rather than "code" rather than Carlie Coats2022/08/25 10:43 AM
    Do we need branch prediction?Kevin G2022/08/25 07:47 AM
      Do we need branch prediction?rwessel2022/08/25 10:10 AM
          Do we need branch prediction?rwessel2022/08/26 09:37 AM
  Do we need branch prediction?Geoff Langdale2022/08/24 06:18 PM
  Do we need branch prediction?Adrian2022/08/24 11:58 PM
  Do we need branch prediction?Brendan2022/08/25 06:54 AM
    Do we need branch prediction?Anon42022/08/25 10:45 AM
      Do we need branch prediction?anon22022/08/25 08:08 PM
  Predicable branching patterns (aykm; )Kara2022/08/27 12:00 PM
    Predicable branching patterns (aykm; )Jukka Larja2022/08/27 10:38 PM
    Predicable branching patterns (aykm; )Eric Fink2022/08/28 12:22 AM
      Predicable branching patterns (aykm; )Doug S2022/08/28 09:17 AM
    Predicable branching patterns (aykm; )---2022/08/28 01:16 PM
      Predicable branching patterns (aykm; )Anon2022/08/28 01:35 PM
  Q: Do we need branch prediction? A: We don't need it, but....2022/08/29 01:17 PM
    Quantum stuff.Kara2022/08/29 02:01 PM
      Q: Do we need branch prediction? A: We don't need it, but....2022/08/30 10:48 AM
    "Quantum Woo" (hint; that's NOT how it works) (NT)anonymous22022/08/29 03:19 PM
      Q: Do we need branch prediction? A: We don't need it, but....2022/08/30 11:14 AM
Reply to this Topic
Name:
Email:
Topic:
Body: No Text
How do you spell tangerine? 🍊