Lines Matching refs:TrueMBB
281 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
283 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
285 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
288 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
296 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB,
974 MachineBasicBlock *TrueMBB = getTrueBranch(BranchMI); in ifPatternMatch() local
975 NumMatch += serialPatternMatch(TrueMBB); in ifPatternMatch()
976 NumMatch += ifPatternMatch(TrueMBB); in ifPatternMatch()
983 assert (!TrueMBB->succ_empty() || !FalseMBB->succ_empty()); in ifPatternMatch()
985 if (TrueMBB->succ_size() == 1 && FalseMBB->succ_size() == 1 in ifPatternMatch()
986 && *TrueMBB->succ_begin() == *FalseMBB->succ_begin()) { in ifPatternMatch()
988 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
989 } else if (TrueMBB->succ_size() == 1 && *TrueMBB->succ_begin() == FalseMBB) { in ifPatternMatch()
994 && *FalseMBB->succ_begin() == TrueMBB) { in ifPatternMatch()
997 std::swap(TrueMBB, FalseMBB); in ifPatternMatch()
1002 && isSameloopDetachedContbreak(TrueMBB, FalseMBB)) { in ifPatternMatch()
1004 } else if (TrueMBB->succ_size() == 1 in ifPatternMatch()
1005 && isSameloopDetachedContbreak(FalseMBB, TrueMBB)) { in ifPatternMatch()
1006 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
1008 return NumMatch + handleJumpintoIf(MBB, TrueMBB, FalseMBB); in ifPatternMatch()
1015 ((TrueMBB && TrueMBB->pred_size() > 1) in ifPatternMatch()
1017 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk); in ifPatternMatch()
1020 if (TrueMBB && TrueMBB->pred_size() > 1) { in ifPatternMatch()
1021 TrueMBB = cloneBlockForPredecessor(TrueMBB, MBB); in ifPatternMatch()
1030 mergeIfthenelseBlock(BranchMI, MBB, TrueMBB, FalseMBB, LandBlk); in ifPatternMatch()
1128 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIf() argument
1129 int Num = handleJumpintoIfImp(HeadMBB, TrueMBB, FalseMBB); in handleJumpintoIf()
1134 Num = handleJumpintoIfImp(HeadMBB, FalseMBB, TrueMBB); in handleJumpintoIf()
1140 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIfImp() argument
1145 DownBlk = TrueMBB; in handleJumpintoIfImp()
1149 << " true = BB" << TrueMBB->getNumber() in handleJumpintoIfImp()
1150 << ", numSucc=" << TrueMBB->succ_size() in handleJumpintoIfImp()
1164 Num += cloneOnSideEntryTo(HeadMBB, TrueMBB, DownBlk); in handleJumpintoIfImp()
1185 MachineBasicBlock *HeadMBB, MachineBasicBlock *TrueMBB, in showImproveSimpleJumpintoIf() argument
1195 if (TrueMBB) { in showImproveSimpleJumpintoIf()
1196 dbgs() << ", true = BB" << TrueMBB->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1197 << TrueMBB->size() << " numPred = " << TrueMBB->pred_size(); in showImproveSimpleJumpintoIf()
1200 TrueMBB->print(dbgs()); in showImproveSimpleJumpintoIf()
1227 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, in improveSimpleJumpintoIf() argument
1234 assert((!TrueMBB || TrueMBB->succ_size() <= 1) in improveSimpleJumpintoIf()
1237 if (TrueMBB == FalseMBB) in improveSimpleJumpintoIf()
1240 MigrateTrue = needMigrateBlock(TrueMBB); in improveSimpleJumpintoIf()
1249 if (!MigrateTrue && TrueMBB && TrueMBB->pred_size() > 1) in improveSimpleJumpintoIf()
1256 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0); in improveSimpleJumpintoIf()
1364 migrateInstruction(TrueMBB, LandBlk, I); in improveSimpleJumpintoIf()
1388 if (MBB != TrueMBB && MBB != FalseMBB) in improveSimpleJumpintoIf()
1394 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0); in improveSimpleJumpintoIf()
1420 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, in mergeIfthenelseBlock() argument
1422 assert (TrueMBB); in mergeIfthenelseBlock()
1426 if (TrueMBB) { in mergeIfthenelseBlock()
1427 dbgs() << "BB" << TrueMBB->getNumber(); in mergeIfthenelseBlock()
1459 if (TrueMBB) { in mergeIfthenelseBlock()
1460 MBB->splice(I, TrueMBB, TrueMBB->begin(), TrueMBB->end()); in mergeIfthenelseBlock()
1461 MBB->removeSuccessor(TrueMBB, true); in mergeIfthenelseBlock()
1462 if (LandMBB && TrueMBB->succ_size()!=0) in mergeIfthenelseBlock()
1463 TrueMBB->removeSuccessor(LandMBB, true); in mergeIfthenelseBlock()
1464 retireBlock(TrueMBB); in mergeIfthenelseBlock()
1465 MLI->removeBlock(TrueMBB); in mergeIfthenelseBlock()
1482 if (LandMBB && TrueMBB && FalseMBB) in mergeIfthenelseBlock()