[PATCH] D106997: [IRSim][IROutliner] Detecting Similar Phi Nodes and Outlining

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 28 13:13:26 PDT 2021


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

We use the same similarity scheme we used for branch instructions for phi nodes, and allow them to be outlined.  There is not a lot of special handling needed for these phi nodes when outlining, as they simply act as outputs.  The code extractor does not currently allow for non entry blocks within the extracted region to have predecessors, so there are not conflicts to handle with respect to predecessors no longer contained in the function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106997

Files:
  llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
  llvm/lib/Analysis/IRSimilarityIdentifier.cpp
  llvm/test/Transforms/IROutliner/phi-nodes-non-constant.ll
  llvm/test/Transforms/IROutliner/phi-nodes-simple.ll
  llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106997.362509.patch
Type: text/x-patch
Size: 15597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210728/59c4fad2/attachment.bin>


More information about the llvm-commits mailing list