diff options
| author | Cong Hou <congh@google.com> | 2015-12-10 19:57:22 +0000 |
|---|---|---|
| committer | Cong Hou <congh@google.com> | 2015-12-10 19:57:22 +0000 |
| commit | 5146b2d1da9d7de8467e496073aa620e3836b6a1 (patch) | |
| tree | c6802d7a22c26f5c5a4967da9ef2ae658c99a4df /llvm/lib/CodeGen/IfConversion.cpp | |
| parent | 497c51cb8a6ac491f693b97927b78b35f0245a48 (diff) | |
| download | bcm5719-llvm-5146b2d1da9d7de8467e496073aa620e3836b6a1.tar.gz bcm5719-llvm-5146b2d1da9d7de8467e496073aa620e3836b6a1.zip | |
Delete a duplicate branch in IfConversion.cpp. NFC.
llvm-svn: 255291
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index e90cb02bd28..71bd61a15cb 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -1679,15 +1679,6 @@ void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) { BranchProbability::getZero()); } - if (AddEdges && ToBBI.BB->isSuccessor(FromBBI.BB)) { - // Set the edge probability from ToBBI.BB to FromBBI.BB to zero to avoid the - // edge probability being merged to other edges when this edge is removed - // later. - ToBBI.BB->setSuccProbability( - std::find(ToBBI.BB->succ_begin(), ToBBI.BB->succ_end(), FromBBI.BB), - BranchProbability::getZero()); - } - for (unsigned i = 0, e = FromSuccs.size(); i != e; ++i) { MachineBasicBlock *Succ = FromSuccs[i]; // Fallthrough edge can't be transferred. |

