Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Fix duplicate diagnostic message #95167

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

maksfb
Copy link
Contributor

@maksfb maksfb commented Jun 11, 2024

Print .altinstructions parsing stats only once.

Print .altinstructions parsing stats only once.
@llvmbot
Copy link
Member

llvmbot commented Jun 11, 2024

@llvm/pr-subscribers-bolt

Author: Maksim Panchenko (maksfb)

Changes

Print .altinstructions parsing stats only once.


Full diff: https://github.com/llvm/llvm-project/pull/95167.diff

1 Files Affected:

  • (modified) bolt/lib/Rewrite/LinuxKernelRewriter.cpp (+3-2)
diff --git a/bolt/lib/Rewrite/LinuxKernelRewriter.cpp b/bolt/lib/Rewrite/LinuxKernelRewriter.cpp
index 6b3f5bce9f0f5..7e0141b003bd0 100644
--- a/bolt/lib/Rewrite/LinuxKernelRewriter.cpp
+++ b/bolt/lib/Rewrite/LinuxKernelRewriter.cpp
@@ -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();
 }

@maksfb maksfb merged commit 1ebda11 into llvm:main Jun 13, 2024
8 checks passed
@maksfb maksfb deleted the gh-fix-print branch June 13, 2024 21:57
EthanLuisMcDonough pushed a commit to EthanLuisMcDonough/llvm-project that referenced this pull request Aug 13, 2024
Print .altinstructions parsing stats only once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants