[all-commits] [llvm/llvm-project] 0dd9fd: [StructuralHash] Support Differences (#112638)

Kyungwoo Lee via All-commits all-commits at lists.llvm.org
Sat Oct 26 20:02:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0dd9fdcf83cd00f51669b32c96937a97ef4b339e
      https://github.com/llvm/llvm-project/commit/0dd9fdcf83cd00f51669b32c96937a97ef4b339e
  Author: Kyungwoo Lee <kyulee at meta.com>
  Date:   2024-10-26 (Sat, 26 Oct 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/StructuralHash.h
    M llvm/include/llvm/IR/StructuralHash.h
    M llvm/lib/Analysis/StructuralHash.cpp
    M llvm/lib/IR/StructuralHash.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/test/Analysis/StructuralHash/structural-hash-printer.ll
    M llvm/unittests/IR/StructuralHashTest.cpp

  Log Message:
  -----------
  [StructuralHash] Support Differences (#112638)

This computes a structural hash while allowing for selective ignoring of
certain operands based on a custom function that is provided. Instead of
a single hash value, it now returns FunctionHashInfo which includes a
hash value, an instruction mapping, and a map to track the operand
location and its corresponding hash value that is ignored.

Depends on https://github.com/llvm/llvm-project/pull/112621.
This is a patch for
https://discourse.llvm.org/t/rfc-global-function-merging/82608.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list