mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Bring back r271090 in a way that doesn't depend on r271089.
llvm-svn: 271092
This commit is contained in:
parent
9ad95cf045
commit
533f0584eb
@ -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");
|
||||
|
@ -21,6 +21,8 @@ target triple = "x86_64-unknown-linux-gnu"
|
||||
; GEN: @__profn_test_br_1 = private constant [9 x i8] c"test_br_1"
|
||||
|
||||
define i32 @test_br_1(i32 %i) {
|
||||
; USE-LABEL: @test_br_1
|
||||
; USE-SAME: !prof ![[FUNC_ENTRY_COUNT:[0-9]+]]
|
||||
entry:
|
||||
; GEN: entry:
|
||||
; GEN-NOT: llvm.instrprof.increment
|
||||
@ -44,3 +46,4 @@ if.end:
|
||||
}
|
||||
; USE-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
|
||||
; USE-DAG: {{![0-9]+}} = !{!"DetailedSummary", {{![0-9]+}}}
|
||||
; USE-DAG: ![[FUNC_ENTRY_COUNT]] = !{!"function_entry_count", i64 3}
|
||||
|
Loading…
Reference in New Issue
Block a user