[hppa-linux] GCC and static branch prediction

Alan Cox alan@lxorguk.ukuu.org.uk
Tue, 23 Mar 1999 17:21:57 +0000 (GMT)


>    A few of us were discussing recently a way to take advantage of static
> branch prediction in the PA-RISC architecture. The problem is that there
> is no ANSI C construct for specifying whether a branch is likely taken,
> or likely not taken.

We already sort of do this for the dynamic branch predictions. The gcc
code generator writes faster code for one path of an if/else in general
anyway. So you just get the pa-risc back end to output the right assumptions.

I'd start by walking though