Fix a non-deterministic loop in llvm::MergeBlockIntoPredecessor.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 11 Jan 2011 22:54:38 +0000 (22:54 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 11 Jan 2011 22:54:38 +0000 (22:54 +0000)
commitfbbd4abfe5a89e432240d2c05201b44a5e2f2f78
treef786edd3bdfd7dc0cbe86f970a687fdd847bf39c
parenta518ccc26a0e01d93a58e305f7c19c42fa640bb9
Fix a non-deterministic loop in llvm::MergeBlockIntoPredecessor.

DT->changeImmediateDominator() trivially ignores identity updates, so there is
really no need for the uniqueing provided by SmallPtrSet.

I expect this to fix PR8954.

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