Of course. The compiler can get predictive information if it knows:
- Statistical branch probabilities collected using instrumentation
- , - ; , ,
- -
- ( "10", :)
- , ( ""
, , , "" .
, , , . , , .
, . OO ( JITted) , . , . , / ( ) , . , .
: , ! :
if (exp1 relop exp2)
X = Y
endif
"" , "MOV_if_relop A to B",
, , ..
, , :
<compute exp1 and exp2>
CMP exp1,exp2 ; sets condition code
MOVif_relop X,Y