CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2025/08/13 09:41:26

Modified files:
        gnu/usr.bin/gcc/gcc/config/m88k: m88k-protos.h m88k.c m88k.md 

Log message:
Because the 88110 has some static branch prediction, code was added in gcc
long ago to decide whether to emit bb1 or bb0 with the branch condition
reversed, depending on whether the branch would be predicted taken or not.

Since then, gcc grew machine-independent code to compute the likeliness of
a branch being taken, which you can influence with __predict_true and
__predict_false.

Replace the old logic looking at the instructions surrounding the branch, and
trust the computed branch probability.

Reply via email to