[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:
Maksim Panchenko 2019-08-19 17:11:42 -07:00
parent 821480d27f
commit bf030f336a
1 changed files with 3 additions and 3 deletions

View File

@ -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)) {