forked from OSchip/llvm-project
[BOLT] Fix misleading output
Summary: BOLT prints "spawning thread to pre-process profile" message even when it is not running in the aggregation mode. Fix that. (cherry picked from FBD16908596)
This commit is contained in:
parent
821480d27f
commit
bf030f336a
|
@ -1087,6 +1087,9 @@ void RewriteInstance::run() {
|
|||
discoverFileObjects();
|
||||
|
||||
std::thread PreProcessProfileThread([&]() {
|
||||
if (!DA.started())
|
||||
return;
|
||||
|
||||
outs() << "BOLT-INFO: spawning thread to pre-process profile\n";
|
||||
preprocessProfileData();
|
||||
});
|
||||
|
@ -2656,9 +2659,6 @@ void RewriteInstance::readDebugInfo() {
|
|||
}
|
||||
|
||||
void RewriteInstance::preprocessProfileData() {
|
||||
if (!DA.started())
|
||||
return;
|
||||
|
||||
NamedRegionTimer T("preprocessprofile", "pre-process profile data",
|
||||
TimerGroupName, TimerGroupDesc, opts::TimeRewrite);
|
||||
if (BAT->enabledFor(InputFile)) {
|
||||
|
|
Loading…
Reference in New Issue