[all-commits] [llvm/llvm-project] 0a8e09: Revert "[IRSim] Adding structural comparison to IR...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Wed Sep 23 20:42:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a8e097e72dfc148df1d9345aba52e75cdc5aa50
      https://github.com/llvm/llvm-project/commit/0a8e097e72dfc148df1d9345aba52e75cdc5aa50
  Author: Andrew Litteken <andrew.litteken at gmail.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
    M llvm/lib/Analysis/IRSimilarityIdentifier.cpp
    M llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

  Log Message:
  -----------
  Revert "[IRSim] Adding structural comparison to IRSimilarityCandidate."

This reverts commit b27db2bb68163fa5bcb4a8f631a305eb5adb44e5.


  Commit: d1aa143aa84e20a8cdef24a0b5ccf70941884534
      https://github.com/llvm/llvm-project/commit/d1aa143aa84e20a8cdef24a0b5ccf70941884534
  Author: Andrew Litteken <andrew.litteken at gmail.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
    M llvm/lib/Analysis/IRSimilarityIdentifier.cpp
    M llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

  Log Message:
  -----------
  [IRSim] Adding structural comparison to IRSimilarityCandidate.

Just because sequences of instructions are similar to one another,
doesn't mean they are doing the same thing.

This introduces a structural check for the IRSimilarityCandidate that
compares two IRSimilarityCandidates against one another, and in each
instruction creates a mapping between the operands and results, or
checks that the existing mapping is valid.  If this check passes, it
means we have structurally similar IRSimilarityCandidates.

Tests for whether the candidates are found in
unittests/Analysis/IRSimilarityIdentifierTest.cpp.

Recommit of: b27db2bb68163fa5bcb4a8f631a305eb5adb44e5 for Differential
URL.

Differential Revision: https://reviews.llvm.org/D86971


Compare: https://github.com/llvm/llvm-project/compare/b27db2bb6816...d1aa143aa84e


More information about the All-commits mailing list