If we are extracting a block that has multiple successors that are the same
authorChris Lattner <sabre@nondot.org>
Fri, 13 Aug 2004 03:27:07 +0000 (03:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Aug 2004 03:27:07 +0000 (03:27 +0000)
commita670c684a637e9922be87d8b459d2e052675f0e4
tree84d4aa8c464e992d613be90000dfb349f1c812ac
parent337772832bb93ed98ee1e93c584ac3f82d9ea959
If we are extracting a block that has multiple successors that are the same
block (common in a switch), make sure to remove extra edges in successor
blocks.  This fixes CodeExtractor/2004-08-12-BlockExtractPHI.ll and should
be pulled into LLVM 1.3 (though the regression test need not be, as that
would require pulling in the LoopExtract.cpp changes).

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