[all-commits] [llvm/llvm-project] 4e500d: [IROutliner] Fix phi nodes when self referential w...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Mon Mar 21 09:06:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e500df89ec6104771699dbf674afa982d5c672e
      https://github.com/llvm/llvm-project/commit/4e500df89ec6104771699dbf674afa982d5c672e
  Author: Andrew Litteken <andrew.litteken at gmail.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/IROutliner.cpp
    A llvm/test/Transforms/IROutliner/phi-nodes-parent-block-referential.ll

  Log Message:
  -----------
  [IROutliner] Fix phi nodes when self referential within block but doesn't contain branch

When outlining a phi node, if the the incoming branch is a block contained in the region and the branch from that block is not outlined, we create broken code. The fix is to recognize when that branch from the included incoming block is not contained, and ignore the region.

Reviewer: paquette

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




More information about the All-commits mailing list