diff options
| author | Sean Silva <chisophugis@gmail.com> | 2016-05-28 04:05:36 +0000 |
|---|---|---|
| committer | Sean Silva <chisophugis@gmail.com> | 2016-05-28 04:05:36 +0000 |
| commit | 02b9d892c5e5f5617e67067b21ee981222212554 (patch) | |
| tree | 19742efedef9c6407e2c9329c6f4dbad194386ba /llvm/lib/Transforms/Instrumentation | |
| parent | 9dd4b5c51da161161c1091bc30d969a21c759765 (diff) | |
| download | bcm5719-llvm-02b9d892c5e5f5617e67067b21ee981222212554.tar.gz bcm5719-llvm-02b9d892c5e5f5617e67067b21ee981222212554.zip | |
Bring back r271090 in a way that doesn't depend on r271089.
llvm-svn: 271092
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 9b7eb1e4bf5..ccfdf1a7657 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -693,6 +693,7 @@ void PGOUseFunc::populateCounters() { DEBUG(dbgs() << "Populate counts in " << NumPasses << " passes.\n"); // Assert every BB has a valid counter. uint64_t FuncEntryCount = getBBInfo(&*F.begin()).CountValue; + F.setEntryCount(FuncEntryCount); uint64_t FuncMaxCount = FuncEntryCount; for (auto &BB : F) { assert(getBBInfo(&BB).CountValid && "BB count is not valid"); |

