[llvm] [BOLT] Add NamedRegionTimer to inferStaleProfile (PR #92621)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 10:01:04 PDT 2024
================
@@ -705,6 +706,10 @@ void assignProfile(BinaryFunction &BF,
bool YAMLProfileReader::inferStaleProfile(
BinaryFunction &BF, const yaml::bolt::BinaryFunctionProfile &YamlBF) {
+
+ NamedRegionTimer T("inferStaleProfile", "inferring from stale profile",
+ "rewrite", "Rewrite passes", opts::InferStaleProfile);
----------------
aaupov wrote:
The option controlling the timer should be `opts::TimeRewrite`
https://github.com/llvm/llvm-project/pull/92621
More information about the llvm-commits
mailing list