[all-commits] [llvm/llvm-project] 4944bb: [IRSim] Adding IRSimilarityCandidate that contains...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Tue Sep 22 16:42:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4944bb190fed8861d4d043eaf45e3c1e12aa2dc5
      https://github.com/llvm/llvm-project/commit/4944bb190fed8861d4d043eaf45e3c1e12aa2dc5
  Author: Andrew Litteken <andrew_litteken at apple.com>
  Date:   2020-09-22 (Tue, 22 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.

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




More information about the All-commits mailing list