Fix a regression from this patch:
authorChris Lattner <sabre@nondot.org>
Tue, 16 Mar 2004 06:00:15 +0000 (06:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Mar 2004 06:00:15 +0000 (06:00 +0000)
commit85ebd541faf03a00d20ce3bdaf133aa6948c64f8
tree9de269b7e1b29c6c950c1f0fc88556a7543b90df
parent339c50873de75ad7db9ab57d64cb4db70035709b
Fix a regression from this patch:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040308/013095.html

Basically, this patch only updated the immediate dominatees of the header node
to tell them that the preheader also dominated them.  In practice, ALL
dominatees of the header node are also dominated by the preheader.

This fixes: LoopSimplify/2004-03-15-IncorrectDomUpdate.
and PR293

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