[all-commits] [llvm/llvm-project] 6ada9e: [IRSim] Adding IRSimilarityCandidate that contains...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Wed Sep 23 11:43:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ada9e516f495eb6aa63e0c3e3edf3e3ae3c1a63
      https://github.com/llvm/llvm-project/commit/6ada9e516f495eb6aa63e0c3e3edf3e3ae3c1a63
  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 IRSimilarityCandidate that contains a region of IRInstructionData.

The IRSimilarityCandidate is a container to hold a region of
IRInstructions and offer interfaces for the starting instruction, ending
instruction, parent function, length.  It also assigns a global value
number for each unique instance of a value in the region.

It also contains an interface to compare two IRSimilarity as to whether
they have the same sequence of similar instructions.

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

Recommit of: 4944bb190fed8861d4d043eaf45e3c1e12aa2dc5

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




More information about the All-commits mailing list