Calculating Branch Mispredicts on IPF

Calculating Branch Mispredicts on IPF

Can someone please tell me the simplest way (if one exists) to calculate branch mispredicts on the Itanium 2 platform. Since there is no recipe for this ratio already in the tool, you are forced to go to the Events dialog and select from what appear to be many many branch event counters. I opted to grab "Branch Events" and "BE_BR_MISPRED_DETAIL-ANY".

I'm having trouble believing the output. Please help.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

There is no easy way due to the complexity of the Itanium 2 branch prediction logic. Here is a forumula you can use. It will you the branch misprediction ratio. .

((BR_MISPRED_DETAIL.ALL.ALL_PRED - BR_MISPRED_DETAIL2.ALL.ALL_UNKNOWN_PRED) -
(BR_MISPRED_DETAIL.ALL.CORRECT_PRED - BR_MISPRED_DETAIL2.ALL.ALL_UNKNOWN_PATH_CORRECT_PRED) ) /
(BR_MISPRED_DETAIL.ALL.ALL_PRED - BR_MISPRED_DETAIL2.ALL.ALL_UNKNOWN_PRED)

Leave a Comment

Please sign in to add a comment. Not a member? Join today