commit | f2ac09bb548c8d89859e0eba7248636e36d74d9a | [log] [tgz] |
---|---|---|
author | Max Kazantsev <max.kazantsev@azul.com> | Fri Nov 23 07:56:47 2018 +0000 |
committer | Max Kazantsev <max.kazantsev@azul.com> | Fri Nov 23 07:56:47 2018 +0000 |
tree | 89f909c25bbf67b410fcbb95c130327ad9c83f43 | |
parent | a796d62f22f9b85337d92be975f88de67de35020 [diff] |
[LoopSimplifyCFG] Don't delete LCSSA Phis When removing edges, we also update Phi inputs and may end up removing a Phi if it has only one input. We should not do it for edges that leave the current loop because these Phis are LCSSA Phis and need to be preserved. Thanks @dmgreen for finding this! Differential Revision: https://reviews.llvm.org/D54841 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347484 91177308-0d34-0410-b5e6-96231b3b80d8