[PATCH] D87293: [GVN] Fix undef incoming value for phi node when new loop exit block created.

weiwei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 09:53:00 PDT 2020


wwei created this revision.
wwei added reviewers: fhahn, asbirlea, jdoerfert, efriedma.
wwei added a project: LLVM.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a reviewer: gkistanova.
wwei requested review of this revision.

In order to preserve LoopSimplify, SplitCriticalEdge will generate a new exit block,
which may become a new dominance frontier for dead blocks. After that, we need to
add this block to DF list, and update the undef incoming value for phi correctly.

      

Bugzilla:https://bugs.llvm.org/show_bug.cgi?id=47462


Repository:
  rZORG LLVM Github Zorg

https://reviews.llvm.org/D87293

Files:
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/test/Transforms/GVN/pr47462.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87293.290512.patch
Type: text/x-patch
Size: 5298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/43f5039a/attachment.bin>


More information about the llvm-commits mailing list