[BOLT] Option to fail if invalid profile detected
Summary: Add an option to fail processing of the input binary if the profile is not accurate: -stale-threshold=<uint> - maximum percentage of stale functions to tolerate (default: 100) Default (100) means never to fail. A function profile is considered stale if any branch in its profile has invalid source or destination. Use `-stale-threshold=0` to fail if any staleness is detected in the profile. (cherry picked from FBD21189036)
Loading
Please sign in to comment