By: dmcq (dmcq.delete@this.fano.co.uk), June 15, 2022 10:23 am
Room: Moderated Discussions
none (none.delete@this.none.com) on June 15, 2022 9:57 am wrote:
> dmcq (dmcq.delete@this.fano.co.uk) on June 15, 2022 9:38 am wrote:
> [...]
> > The ARM Branch consistent seems the wrong way around to
> > me. I haven't done this for a while but when I used to
> > use the rarely pragma it ensured the rarely used code, e.g.
> > for handling errors, was put out of line at the end
> > of the code so the non-rarely code wasn't polluted by stuff
> > that hardly ever ran - good for the cache. This would
> > need a marker saying the branch hardly ever branched rather than that it prctically always branched.
>
> I might have missed something but your branch will consistently fail so what Arm does is
> fine. By consistent they mean that it is unlikely to change direction so that's OK for your
> example.
Oh I see, I misread it. Thanks.
> dmcq (dmcq.delete@this.fano.co.uk) on June 15, 2022 9:38 am wrote:
> [...]
> > The ARM Branch consistent seems the wrong way around to
> > me. I haven't done this for a while but when I used to
> > use the rarely pragma it ensured the rarely used code, e.g.
> > for handling errors, was put out of line at the end
> > of the code so the non-rarely code wasn't polluted by stuff
> > that hardly ever ran - good for the cache. This would
> > need a marker saying the branch hardly ever branched rather than that it prctically always branched.
>
> I might have missed something but your branch will consistently fail so what Arm does is
> fine. By consistent they mean that it is unlikely to change direction so that's OK for your
> example.
Oh I see, I misread it. Thanks.