Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5014 Discussions

Calculating Branch Mispredicts on IPF

Intel_C_Intel
Employee
682 Views
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.
0 Kudos
1 Reply
bnshah
Beginner
682 Views
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)

0 Kudos
Reply