[llvm] ce27dcc - [NFC][CodeGen] Make a few MachineBlockHashInfo functions static (#192825)

via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 19 00:10:43 PDT 2026


Author: Vitaly Buka
Date: 2026-04-19T07:10:38Z
New Revision: ce27dcc79de9a1effbe62d9fbce737d26634ae88

URL: https://github.com/llvm/llvm-project/commit/ce27dcc79de9a1effbe62d9fbce737d26634ae88
DIFF: https://github.com/llvm/llvm-project/commit/ce27dcc79de9a1effbe62d9fbce737d26634ae88.diff

LOG: [NFC][CodeGen] Make a few MachineBlockHashInfo functions static (#192825)

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineBlockHashInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineBlockHashInfo.cpp b/llvm/lib/CodeGen/MachineBlockHashInfo.cpp
index f2f73f63bcc0c..3aa3823731396 100644
--- a/llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+++ b/llvm/lib/CodeGen/MachineBlockHashInfo.cpp
@@ -17,7 +17,7 @@
 
 using namespace llvm;
 
-uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands) {
+static uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands) {
   uint64_t Hash = 0;
   for (const MachineInstr &MI : MBB) {
     if (MI.isMetaInstruction() || MI.isTerminator())
@@ -34,7 +34,7 @@ uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands) {
 }
 
 /// Fold a 64-bit integer to a 16-bit one.
-uint16_t fold_64_to_16(const uint64_t Value) {
+static uint16_t fold_64_to_16(const uint64_t Value) {
   uint16_t Res = static_cast<uint16_t>(Value);
   Res ^= static_cast<uint16_t>(Value >> 16);
   Res ^= static_cast<uint16_t>(Value >> 32);


        


More information about the llvm-commits mailing list