By: none (none.delete@this.none.com), June 15, 2022 9:57 am
Room: Moderated Discussions
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.
[...]
> 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.