parent
95055d8f8b
commit
36af40c115
|
@ -2507,7 +2507,7 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) {
|
|||
else {
|
||||
// For unconditional branch, check for a simple CFG pattern, where
|
||||
// BB has a single predecessor and BB's successor is also its predecessor's
|
||||
// successor. If such pattern exisits, check for CSE between BB and its
|
||||
// successor. If such pattern exists, check for CSE between BB and its
|
||||
// predecessor.
|
||||
if (BasicBlock *PB = BB->getSinglePredecessor())
|
||||
if (BranchInst *PBI = dyn_cast<BranchInst>(PB->getTerminator()))
|
||||
|
|
Loading…
Reference in New Issue