]> granicus.if.org Git - llvm/commit
[MemorySSA] Fix phi insertion when inserting a def.
authorAlina Sbirlea <asbirlea@google.com>
Tue, 17 Sep 2019 16:33:35 +0000 (16:33 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 17 Sep 2019 16:33:35 +0000 (16:33 +0000)
commitb68c01e0d731640bd7824ebdf07864ff0dd9db16
treeef581a420a31ca922a51d540ed791be4c94bb8f3
parent831fe3501a04c0d877c77d19dafcc91cfa8f76e4
[MemorySSA] Fix phi insertion when inserting a def.

Summary:
When inserting a Def, the current algorithm is walking edges backward
and inserting new Phis where needed. There may be additional Phis needed
in the IDF of the newly inserted Def and Phis.
Adding Phis in the IDF of the Def was added ina  previous patch, but we
may also need other Phis in the IDF of the newly added Phis.

Reviewers: george.burgess.iv

Subscribers: Prazek, sanjoy.google, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372138 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemorySSAUpdater.cpp
test/Analysis/MemorySSA/pr43320.ll [new file with mode: 0644]