OSDN Git Service

[LoopDeletion] NFC: Move phi node value setting into prepass
authorAnna Thomas <anna@azul.com>
Sun, 25 Jun 2017 21:13:58 +0000 (21:13 +0000)
committerAnna Thomas <anna@azul.com>
Sun, 25 Jun 2017 21:13:58 +0000 (21:13 +0000)
commitdcc5fa654c7848b896c9c118b336684793a786fd
tree305eb8884cd392c183c31d2fe656461e9c7f8d3c
parent6cf9acbae60a358f912106d368e6b7dcc094ac66
[LoopDeletion] NFC: Move phi node value setting into prepass

Recommit NFC patch (rL306157) where I missed incrementing the basic block iterator,
which caused loop deletion tests to hang due to infinite loop.
Had reverted it in rL306162.

rL306157 commit message:
Currently, the implementation of delete dead loops has a special case
when the loop being deleted is never executed. This special case
(updating of exit block's incoming values for phis) can be
run as a prepass for non-executable loops before performing
the actual deletion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306254 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopDeletion.cpp