Extra edges are deleted later if needed.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 15 Jun 2007 17:34:48 +0000 (17:34 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 15 Jun 2007 17:34:48 +0000 (17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37593 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/IfConversion.cpp

index 9885ccc159acad638d77080392ad136cc79b3782..93388df8542b355e26ca32e0eaa3e906294c564e 100644 (file)
@@ -806,7 +806,6 @@ bool IfConverter::IfConvertTriangle(BBInfo &BBI) {
     // Copy instructions in the true block, predicate them add them to
     // the entry block.
     CopyAndPredicateBlock(BBI, *CvtBBI, Cond, true);
-    BBI.BB->removeSuccessor(CvtBBI->BB);
   } else {
     // Predicate the 'true' block after removing its branch.
     CvtBBI->NonPredSize -= TII->RemoveBranch(*CvtBBI->BB);