[PATCH] D124777: [IROutliner] Accommodate PHINodes with entry outside region for numbering

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 09:03:11 PDT 2022


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

When a PHINode has an incoming block from outside the region, it must be handled specially when assigning a global value number to each incoming value.  A PHINode has multiple predecessors, and we must handle this case rather than only the single predecessor case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124777

Files:
  llvm/lib/Transforms/IPO/IROutliner.cpp
  llvm/test/Transforms/IROutliner/one-external-incoming-block-phi-node.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124777.426430.patch
Type: text/x-patch
Size: 6324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220502/cb35d530/attachment.bin>


More information about the llvm-commits mailing list