[llvm] [BOLT] Introduce profile-use-std-hash (PR #74253)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 14:26:38 PST 2023


================
@@ -360,9 +360,9 @@ void IdenticalCodeFolding::runOnFunctions(BinaryContext &BC) {
 
       // Pre-compute hash before pushing into hashtable.
       // Hash instruction operands to minimize hash collisions.
-      BF.computeHash(opts::ICFUseDFS, [&BC](const MCOperand &Op) {
-        return hashInstOperand(BC, Op);
-      });
+      BF.computeHash(
+          opts::ICFUseDFS, /*UseStdHash=*/false,
----------------
maksfb wrote:

Maybe pass a hashing function instead?

https://github.com/llvm/llvm-project/pull/74253


More information about the llvm-commits mailing list