1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Extra edges are deleted later if needed.

llvm-svn: 37593
This commit is contained in:
Evan Cheng 2007-06-15 17:34:48 +00:00
parent 5c0ffc7551
commit a6504bc2e0

View File

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