[PATCH] D120786: [IRSim] Removing length check so first instruction in module is included

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 16:58:25 PST 2022


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

Discussed: https://github.com/llvm/llvm-project/issues/54124

If an instruction is first legal instruction in the module, and is the only legal instruction in its basic block, it will be ignored by the outliner due to a length check inherited from the older version of the outliner that was restricted to outlining within a single basic block.  This removes that check, and updates any tests that broke because of it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120786

Files:
  llvm/lib/Analysis/IRSimilarityIdentifier.cpp
  llvm/test/Transforms/IROutliner/outlining-basic-branches.ll
  llvm/test/Transforms/IROutliner/phi-nodes-simple.ll
  llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120786.412292.patch
Type: text/x-patch
Size: 9460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220302/9fab82e9/attachment.bin>


More information about the llvm-commits mailing list