diff options
Diffstat (limited to 'bolt/lib/Profile/YAMLProfileReader.cpp')
| -rw-r--r-- | bolt/lib/Profile/YAMLProfileReader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bolt/lib/Profile/YAMLProfileReader.cpp b/bolt/lib/Profile/YAMLProfileReader.cpp index f5636bfe3e1f..88b806c7a9ca 100644 --- a/bolt/lib/Profile/YAMLProfileReader.cpp +++ b/bolt/lib/Profile/YAMLProfileReader.cpp @@ -177,11 +177,11 @@ bool YAMLProfileReader::parseFunctionProfile( BF.setExecutionCount(YamlBF.ExecCount); - uint64_t FuncRawBranchCount = 0; + uint64_t FuncRawSampleCount = 0; for (const yaml::bolt::BinaryBasicBlockProfile &YamlBB : YamlBF.Blocks) for (const yaml::bolt::SuccessorInfo &YamlSI : YamlBB.Successors) - FuncRawBranchCount += YamlSI.Count; - BF.setRawBranchCount(FuncRawBranchCount); + FuncRawSampleCount += YamlSI.Count; + BF.setRawSampleCount(FuncRawSampleCount); if (BF.empty()) return true; |
