forked from OSchip/llvm-project
[PGO] Use the explicit parameter in ProfileSummary API. NFC
Use the explicit parameter in setProfileSummary() and getSummary(). This is a follow-up of r355131. llvm-svn: 355209
This commit is contained in:
parent
d295f51469
commit
39f6d7e616
|
@ -52,6 +52,7 @@
|
||||||
#include "llvm/IR/Intrinsics.h"
|
#include "llvm/IR/Intrinsics.h"
|
||||||
#include "llvm/IR/LLVMContext.h"
|
#include "llvm/IR/LLVMContext.h"
|
||||||
#include "llvm/IR/Module.h"
|
#include "llvm/IR/Module.h"
|
||||||
|
#include "llvm/IR/ProfileSummary.h"
|
||||||
#include "llvm/ProfileData/InstrProfReader.h"
|
#include "llvm/ProfileData/InstrProfReader.h"
|
||||||
#include "llvm/Support/CodeGen.h"
|
#include "llvm/Support/CodeGen.h"
|
||||||
#include "llvm/Support/ConvertUTF.h"
|
#include "llvm/Support/ConvertUTF.h"
|
||||||
|
@ -417,7 +418,9 @@ void CodeGenModule::Release() {
|
||||||
OpenMPRuntime->clear();
|
OpenMPRuntime->clear();
|
||||||
}
|
}
|
||||||
if (PGOReader) {
|
if (PGOReader) {
|
||||||
getModule().setProfileSummary(PGOReader->getSummary().getMD(VMContext));
|
getModule().setProfileSummary(
|
||||||
|
PGOReader->getSummary(/* UseCS */ false).getMD(VMContext),
|
||||||
|
llvm::ProfileSummary::PSK_Instr);
|
||||||
if (PGOStats.hasDiagnostics())
|
if (PGOStats.hasDiagnostics())
|
||||||
PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName);
|
PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue