[PATCH] D87312: [IRSim] Letting call instructions be legal for similarity identification.

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 11:41:42 PDT 2020


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

Here we let non-intrinsic calls be considered legal and valid for similarity only if the call is not indirect, and has a name.

For two calls to be considered similar, they must have the same name, the same function types, and the same set of parameters, including tail calls and calling conventions.

Tests are found in unittests/Analysis/IRSimilarityIdentifierTest.cpp.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87312

Files:
  llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
  llvm/lib/Analysis/IRSimilarityIdentifier.cpp
  llvm/test/Transforms/IROutliner/illegal-calls.ll
  llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87312.290549.patch
Type: text/x-patch
Size: 12414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/99f7602c/attachment.bin>


More information about the llvm-commits mailing list