mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
Extra edges are deleted later if needed.
llvm-svn: 37593
This commit is contained in:
parent
5c0ffc7551
commit
a6504bc2e0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user