[llvm] 09f4c69 - [NFC][IR] Update StructuralHash comment

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 19:41:20 PDT 2023


Author: Aiden Grossman
Date: 2023-08-29T19:41:14-07:00
New Revision: 09f4c6967f6625a962c0abe615a96cadc4a971f5

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

LOG: [NFC][IR] Update StructuralHash comment

This patch updates a comment at the top of the structural hash
implementation that was made invalid by
64da0be1fc06ee2199bd27c980736986e0eccd9d. The class is now used for more
than just validating pass return status and is now the sole
implementation rather than being copied from somewhere.

Added: 
    

Modified: 
    llvm/lib/IR/StructuralHash.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/StructuralHash.cpp b/llvm/lib/IR/StructuralHash.cpp
index 90f13772da75a6..ce2b5a38b2f3a7 100644
--- a/llvm/lib/IR/StructuralHash.cpp
+++ b/llvm/lib/IR/StructuralHash.cpp
@@ -20,8 +20,8 @@ using namespace llvm;
 namespace {
 
 // Basic hashing mechanism to detect structural change to the IR, used to verify
-// pass return status consistency with actual change. Loosely copied from
-// llvm/lib/Transforms/Utils/FunctionComparator.cpp
+// pass return status consistency with actual change. In addition to being used
+// by the MergeFunctions pass.
 
 class StructuralHashImpl {
   uint64_t Hash;


        


More information about the llvm-commits mailing list