[PATCH] D86971: [IRSim] Adding structural comparison to IRSimilarityCandidate.

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 13:16:31 PDT 2020


AndrewLitteken created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
AndrewLitteken requested review of this revision.

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`.


https://reviews.llvm.org/D86971

Files:
  llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
  llvm/lib/Analysis/IRSimilarityIdentifier.cpp
  llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86971.289264.patch
Type: text/x-patch
Size: 15181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200901/f6f16443/attachment.bin>


More information about the llvm-commits mailing list