Check for terminating conditions before adding PHIs to the worklists.
authorBob Wilson <bob.wilson@apple.com>
Fri, 2 Apr 2010 00:10:41 +0000 (00:10 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 2 Apr 2010 00:10:41 +0000 (00:10 +0000)
commitec54d6ab84ea314f2a8ac0fd996d8d28cbbc76db
treeb014138f7b2c6f646dfb4ecdae98e8c40a53fed0
parent9c0012e738a9c51e5a2d1a32d88c9a6b4d547195
Check for terminating conditions before adding PHIs to the worklists.
This is more efficient than adding them to the worklist and then ignoring them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SSAUpdater.cpp