Skip to content

Commit

Permalink
[BOLT] Fix duplicate diagnostic message (#95167)
Browse files Browse the repository at this point in the history
Print .altinstructions parsing stats only once.
  • Loading branch information
maksfb authored Jun 13, 2024
1 parent 3106a23 commit 1ebda11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bolt/lib/Rewrite/LinuxKernelRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,9 @@ Error LinuxKernelRewriter::tryReadAltInstructions(uint32_t AltInstFeatureSize,
}
}

BC.outs() << "BOLT-INFO: parsed " << EntryID
<< " alternative instruction entries\n";
if (!ParseOnly)
BC.outs() << "BOLT-INFO: parsed " << EntryID
<< " alternative instruction entries\n";

return Error::success();
}
Expand Down

0 comments on commit 1ebda11

Please sign in to comment.