HomePhabricator

Detect Source Drift with Propeller.

Authored by tmsriram on Jan 29 2021, 6:47 PM.

Description

Detect Source Drift with Propeller.

Source Drift happens when the sources are updated after profiling the binary
but before building the final optimized binary. If the source has changed since
the profiles were obtained, optimizing basic blocks might be sub-optimal. This
only applies to BasicBlockSection::List as it creates clusters of basic blocks
using basic block ids. Source drift can invalidate these groupings leading to
sub-optimal code generation with regards to performance.

PGO source drift for a particular function can be detected using function
metadata added in D95495.

When source drift is deected, disable basic block clusters by default
which can be re-enabled with -mllvm option
bbsections-detect-source-drift=false.

Differential Revision: https://reviews.llvm.org/D95593

Details

Committed
tmsriramJan 29 2021, 6:47 PM
Differential Revision
D95593: Detect Source Drift with Propeller's basic-block-sections=list=
Parents
rG4d9336923ec3: Use type alias for large tuples
Branches
Unknown
Tags
Unknown