diff options
author | Max Kazantsev <max.kazantsev@azul.com> | 2018-11-23 07:56:47 +0000 |
---|---|---|
committer | Max Kazantsev <max.kazantsev@azul.com> | 2018-11-23 07:56:47 +0000 |
commit | cb8e24033472088c401721b77c9542ce55e533a2 (patch) | |
tree | aa1fa4ad5f5f59d25d975f614aec3ca6d2550a21 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | a10c1c7412af9b40c984d4960a07d4190526bea0 (diff) | |
download | llvm-cb8e24033472088c401721b77c9542ce55e533a2.zip llvm-cb8e24033472088c401721b77c9542ce55e533a2.tar.gz llvm-cb8e24033472088c401721b77c9542ce55e533a2.tar.bz2 |
[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
llvm-svn: 347484
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions