Lines Matching refs:FalseMBB

279       MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
281 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
283 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
286 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
295 MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB);
952 MachineBasicBlock *FalseMBB = getFalseBranch(MBB, BranchMI); in ifPatternMatch() local
953 NumMatch += serialPatternMatch(FalseMBB); in ifPatternMatch()
954 NumMatch += ifPatternMatch(FalseMBB); 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()
964 } else if (TrueMBB->succ_size() == 1 && *TrueMBB->succ_begin() == FalseMBB) { in ifPatternMatch()
966 LandBlk = FalseMBB; in ifPatternMatch()
967 FalseMBB = nullptr; in ifPatternMatch()
968 } else if (FalseMBB->succ_size() == 1 in ifPatternMatch()
969 && *FalseMBB->succ_begin() == TrueMBB) { in ifPatternMatch()
972 std::swap(TrueMBB, FalseMBB); in ifPatternMatch()
974 LandBlk = FalseMBB; in ifPatternMatch()
975 FalseMBB = nullptr; in ifPatternMatch()
976 } else if (FalseMBB->succ_size() == 1 in ifPatternMatch()
977 && isSameloopDetachedContbreak(TrueMBB, FalseMBB)) { in ifPatternMatch()
978 LandBlk = *FalseMBB->succ_begin(); in ifPatternMatch()
980 && isSameloopDetachedContbreak(FalseMBB, TrueMBB)) { in ifPatternMatch()
983 return NumMatch + handleJumpintoIf(MBB, TrueMBB, FalseMBB); in ifPatternMatch()
991 || (FalseMBB && FalseMBB->pred_size() > 1))) { in ifPatternMatch()
992 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk); in ifPatternMatch()
1000 if (FalseMBB && FalseMBB->pred_size() > 1) { in ifPatternMatch()
1001 FalseMBB = cloneBlockForPredecessor(FalseMBB, 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
1119 << FalseMBB->getNumber() << "\n";); in handleJumpintoIfImp()
1124 if (singlePathTo(FalseMBB, DownBlk) == SinglePath_InPath) { in handleJumpintoIfImp()
1128 Num += cloneOnSideEntryTo(HeadMBB, FalseMBB, DownBlk); in handleJumpintoIfImp()
1148 MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB, bool Detail) { in showImproveSimpleJumpintoIf() argument
1166 if (FalseMBB) { in showImproveSimpleJumpintoIf()
1167 dbgs() << ", false = BB" << FalseMBB->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1168 << FalseMBB->size() << " numPred = " << FalseMBB->pred_size(); in showImproveSimpleJumpintoIf()
1171 FalseMBB->print(dbgs()); in showImproveSimpleJumpintoIf()
1190 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, in improveSimpleJumpintoIf() argument
1198 && (!FalseMBB || FalseMBB->succ_size() <= 1)); in improveSimpleJumpintoIf()
1200 if (TrueMBB == FalseMBB) in improveSimpleJumpintoIf()
1204 MigrateFalse = needMigrateBlock(FalseMBB); in improveSimpleJumpintoIf()
1214 if (!MigrateFalse && FalseMBB && FalseMBB->pred_size() > 1) in improveSimpleJumpintoIf()
1219 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1335 migrateInstruction(FalseMBB, LandBlk, I); in improveSimpleJumpintoIf()
1350 if (MBB != TrueMBB && MBB != FalseMBB) in improveSimpleJumpintoIf()
1356 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1380 MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB) { in mergeIfthenelseBlock() argument
1385 dbgs() << "{ "; if (FalseMBB) { in mergeIfthenelseBlock()
1386 dbgs() << "BB" << FalseMBB->getNumber(); in mergeIfthenelseBlock()
1416 if (FalseMBB) { in mergeIfthenelseBlock()
1418 MBB->splice(I, FalseMBB, FalseMBB->begin(), in mergeIfthenelseBlock()
1419 FalseMBB->end()); in mergeIfthenelseBlock()
1420 MBB->removeSuccessor(FalseMBB, true); in mergeIfthenelseBlock()
1421 if (LandMBB && FalseMBB->succ_size() != 0) in mergeIfthenelseBlock()
1422 FalseMBB->removeSuccessor(LandMBB, true); in mergeIfthenelseBlock()
1423 retireBlock(FalseMBB); in mergeIfthenelseBlock()
1424 MLI->removeBlock(FalseMBB); in mergeIfthenelseBlock()
1430 if (LandMBB && TrueMBB && FalseMBB) in mergeIfthenelseBlock()