[llvm] 777d2e5 - [memprof] Drop the trait parameter (NFC) (#89461)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 17:01:01 PDT 2024


Author: Kazu Hirata
Date: 2024-04-19T17:00:57-07:00
New Revision: 777d2e54a9b69463a30c305a0d1a34fef90dbe93

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

LOG: [memprof] Drop the trait parameter (NFC) (#89461)

OnDiskIterableChainedHashTable::Create can default-contruct a trait
object for us.  We don't need to construct one on our own unless we
need to customize something (like a version number).

Added: 
    

Modified: 
    llvm/lib/ProfileData/InstrProfReader.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index b05bad7d59ec72..cefb6af12d0021 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -1272,13 +1272,13 @@ Error IndexedMemProfReader::deserialize(const unsigned char *Start,
   MemProfFrameTable.reset(MemProfFrameHashTable::Create(
       /*Buckets=*/Start + FrameTableOffset,
       /*Payload=*/Start + FramePayloadOffset,
-      /*Base=*/Start, memprof::FrameLookupTrait()));
+      /*Base=*/Start));
 
   if (Version >= memprof::Version2)
     MemProfCallStackTable.reset(MemProfCallStackHashTable::Create(
         /*Buckets=*/Start + CallStackTableOffset,
         /*Payload=*/Start + CallStackPayloadOffset,
-        /*Base=*/Start, memprof::CallStackLookupTrait()));
+        /*Base=*/Start));
 
 #ifdef EXPENSIVE_CHECKS
   // Go through all the records and verify that CSId has been correctly


        


More information about the llvm-commits mailing list