It does not make sense to set equal weights for all unkown branches as we have static branch prediction available.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D24732
Only set branch weight during sample pgo annotation when max_weight of the branch is non-zero. Otherwise use default static profile to set branch probability. ClosedPublic Authored by danielcdh on Sep 19 2016, 9:39 AM.
Details Summary It does not make sense to set equal weights for all unkown branches as we have static branch prediction available.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Sep 19 2016, 9:41 AM
Revision Contents
Diff 71842 lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/fnptr.ll
|