Lines Matching refs:TrueMBB

279       MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
281 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
283 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
286 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
294 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB,
949 MachineBasicBlock *TrueMBB = getTrueBranch(BranchMI); in ifPatternMatch() local
950 NumMatch += serialPatternMatch(TrueMBB); in ifPatternMatch()
951 NumMatch += ifPatternMatch(TrueMBB); in ifPatternMatch()
958 assert (!TrueMBB->succ_empty() || !FalseMBB->succ_empty()); in ifPatternMatch()
960 if (TrueMBB->succ_size() == 1 && FalseMBB->succ_size() == 1 in ifPatternMatch()
961 && *TrueMBB->succ_begin() == *FalseMBB->succ_begin()) { in ifPatternMatch()
963 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
964 } else if (TrueMBB->succ_size() == 1 && *TrueMBB->succ_begin() == FalseMBB) { in ifPatternMatch()
969 && *FalseMBB->succ_begin() == TrueMBB) { in ifPatternMatch()
972 std::swap(TrueMBB, FalseMBB); in ifPatternMatch()
977 && isSameloopDetachedContbreak(TrueMBB, FalseMBB)) { in ifPatternMatch()
979 } else if (TrueMBB->succ_size() == 1 in ifPatternMatch()
980 && isSameloopDetachedContbreak(FalseMBB, TrueMBB)) { in ifPatternMatch()
981 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
983 return NumMatch + handleJumpintoIf(MBB, TrueMBB, FalseMBB); in ifPatternMatch()
990 ((TrueMBB && TrueMBB->pred_size() > 1) in ifPatternMatch()
992 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk); in ifPatternMatch()
995 if (TrueMBB && TrueMBB->pred_size() > 1) { in ifPatternMatch()
996 TrueMBB = cloneBlockForPredecessor(TrueMBB, MBB); in ifPatternMatch()
1005 mergeIfthenelseBlock(BranchMI, MBB, TrueMBB, FalseMBB, LandBlk); in ifPatternMatch()
1098 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIf() argument
1099 int Num = handleJumpintoIfImp(HeadMBB, TrueMBB, FalseMBB); in handleJumpintoIf()
1103 Num = handleJumpintoIfImp(HeadMBB, FalseMBB, TrueMBB); in handleJumpintoIf()
1109 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIfImp() argument
1114 DownBlk = TrueMBB; in handleJumpintoIfImp()
1117 << " true = BB" << TrueMBB->getNumber() in handleJumpintoIfImp()
1118 << ", numSucc=" << TrueMBB->succ_size() << " false = BB" in handleJumpintoIfImp()
1127 Num += cloneOnSideEntryTo(HeadMBB, TrueMBB, DownBlk); in handleJumpintoIfImp()
1147 MachineBasicBlock *HeadMBB, MachineBasicBlock *TrueMBB, in showImproveSimpleJumpintoIf() argument
1157 if (TrueMBB) { in showImproveSimpleJumpintoIf()
1158 dbgs() << ", true = BB" << TrueMBB->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1159 << TrueMBB->size() << " numPred = " << TrueMBB->pred_size(); in showImproveSimpleJumpintoIf()
1162 TrueMBB->print(dbgs()); in showImproveSimpleJumpintoIf()
1190 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, in improveSimpleJumpintoIf() argument
1197 assert((!TrueMBB || TrueMBB->succ_size() <= 1) in improveSimpleJumpintoIf()
1200 if (TrueMBB == FalseMBB) in improveSimpleJumpintoIf()
1203 MigrateTrue = needMigrateBlock(TrueMBB); in improveSimpleJumpintoIf()
1212 if (!MigrateTrue && TrueMBB && TrueMBB->pred_size() > 1) in improveSimpleJumpintoIf()
1219 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1326 migrateInstruction(TrueMBB, LandBlk, I); in improveSimpleJumpintoIf()
1350 if (MBB != TrueMBB && MBB != FalseMBB) in improveSimpleJumpintoIf()
1356 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1379 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, in mergeIfthenelseBlock() argument
1381 assert (TrueMBB); in mergeIfthenelseBlock()
1383 if (TrueMBB) { dbgs() << "BB" << TrueMBB->getNumber(); } dbgs() in mergeIfthenelseBlock()
1407 if (TrueMBB) { in mergeIfthenelseBlock()
1408 MBB->splice(I, TrueMBB, TrueMBB->begin(), TrueMBB->end()); in mergeIfthenelseBlock()
1409 MBB->removeSuccessor(TrueMBB, true); in mergeIfthenelseBlock()
1410 if (LandMBB && TrueMBB->succ_size()!=0) in mergeIfthenelseBlock()
1411 TrueMBB->removeSuccessor(LandMBB, true); in mergeIfthenelseBlock()
1412 retireBlock(TrueMBB); in mergeIfthenelseBlock()
1413 MLI->removeBlock(TrueMBB); in mergeIfthenelseBlock()
1430 if (LandMBB && TrueMBB && FalseMBB) in mergeIfthenelseBlock()