mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[MLGO] fix silly LLVM_DEBUG misuse
This commit is contained in:
parent
f4b486c976
commit
506c974562
@ -157,7 +157,7 @@ bool InlineAdvisorAnalysis::Result::tryCreate(InlineParams Params,
|
|||||||
auto &FAM = MAM.getResult<FunctionAnalysisManagerModuleProxy>(M).getManager();
|
auto &FAM = MAM.getResult<FunctionAnalysisManagerModuleProxy>(M).getManager();
|
||||||
switch (Mode) {
|
switch (Mode) {
|
||||||
case InliningAdvisorMode::Default:
|
case InliningAdvisorMode::Default:
|
||||||
LLVM_DEBUG("Using default inliner heuristic.");
|
LLVM_DEBUG(dbgs() << "Using default inliner heuristic.\n");
|
||||||
Advisor.reset(new DefaultInlineAdvisor(M, FAM, Params));
|
Advisor.reset(new DefaultInlineAdvisor(M, FAM, Params));
|
||||||
// Restrict replay to default advisor, ML advisors are stateful so
|
// Restrict replay to default advisor, ML advisors are stateful so
|
||||||
// replay will need augmentations to interleave with them correctly.
|
// replay will need augmentations to interleave with them correctly.
|
||||||
@ -169,7 +169,7 @@ bool InlineAdvisorAnalysis::Result::tryCreate(InlineParams Params,
|
|||||||
break;
|
break;
|
||||||
case InliningAdvisorMode::Development:
|
case InliningAdvisorMode::Development:
|
||||||
#ifdef LLVM_HAVE_TF_API
|
#ifdef LLVM_HAVE_TF_API
|
||||||
LLVM_DEBUG("Using development-mode inliner policy.");
|
LLVM_DEBUG(dbgs() << "Using development-mode inliner policy.\n");
|
||||||
Advisor =
|
Advisor =
|
||||||
llvm::getDevelopmentModeAdvisor(M, MAM, [&FAM, Params](CallBase &CB) {
|
llvm::getDevelopmentModeAdvisor(M, MAM, [&FAM, Params](CallBase &CB) {
|
||||||
auto OIC = getDefaultInlineAdvice(CB, FAM, Params);
|
auto OIC = getDefaultInlineAdvice(CB, FAM, Params);
|
||||||
@ -179,7 +179,7 @@ bool InlineAdvisorAnalysis::Result::tryCreate(InlineParams Params,
|
|||||||
break;
|
break;
|
||||||
case InliningAdvisorMode::Release:
|
case InliningAdvisorMode::Release:
|
||||||
#ifdef LLVM_HAVE_TF_AOT
|
#ifdef LLVM_HAVE_TF_AOT
|
||||||
LLVM_DEBUG("Using release-mode inliner policy.");
|
LLVM_DEBUG(dbgs() << "Using release-mode inliner policy.\n");
|
||||||
Advisor = llvm::getReleaseModeAdvisor(M, MAM);
|
Advisor = llvm::getReleaseModeAdvisor(M, MAM);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user