• Home
  • Raw
  • Download

Lines Matching refs:FalseMBB

281       MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
283 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
285 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
288 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
297 MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB);
977 MachineBasicBlock *FalseMBB = getFalseBranch(MBB, BranchMI); in ifPatternMatch() local
978 NumMatch += serialPatternMatch(FalseMBB); in ifPatternMatch()
979 NumMatch += ifPatternMatch(FalseMBB); 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()
989 } else if (TrueMBB->succ_size() == 1 && *TrueMBB->succ_begin() == FalseMBB) { in ifPatternMatch()
991 LandBlk = FalseMBB; in ifPatternMatch()
992 FalseMBB = nullptr; in ifPatternMatch()
993 } else if (FalseMBB->succ_size() == 1 in ifPatternMatch()
994 && *FalseMBB->succ_begin() == TrueMBB) { in ifPatternMatch()
997 std::swap(TrueMBB, FalseMBB); in ifPatternMatch()
999 LandBlk = FalseMBB; in ifPatternMatch()
1000 FalseMBB = nullptr; in ifPatternMatch()
1001 } else if (FalseMBB->succ_size() == 1 in ifPatternMatch()
1002 && isSameloopDetachedContbreak(TrueMBB, FalseMBB)) { in ifPatternMatch()
1003 LandBlk = *FalseMBB->succ_begin(); in ifPatternMatch()
1005 && isSameloopDetachedContbreak(FalseMBB, TrueMBB)) { in ifPatternMatch()
1008 return NumMatch + handleJumpintoIf(MBB, TrueMBB, FalseMBB); in ifPatternMatch()
1016 || (FalseMBB && FalseMBB->pred_size() > 1))) { in ifPatternMatch()
1017 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk); in ifPatternMatch()
1025 if (FalseMBB && FalseMBB->pred_size() > 1) { in ifPatternMatch()
1026 FalseMBB = cloneBlockForPredecessor(FalseMBB, 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
1151 << " false = BB" << FalseMBB->getNumber() << "\n"; in handleJumpintoIfImp()
1159 if (singlePathTo(FalseMBB, DownBlk) == SinglePath_InPath) { in handleJumpintoIfImp()
1165 Num += cloneOnSideEntryTo(HeadMBB, FalseMBB, DownBlk); in handleJumpintoIfImp()
1186 MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB, bool Detail) { in showImproveSimpleJumpintoIf() argument
1204 if (FalseMBB) { in showImproveSimpleJumpintoIf()
1205 dbgs() << ", false = BB" << FalseMBB->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1206 << FalseMBB->size() << " numPred = " << FalseMBB->pred_size(); in showImproveSimpleJumpintoIf()
1209 FalseMBB->print(dbgs()); in showImproveSimpleJumpintoIf()
1227 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, in improveSimpleJumpintoIf() argument
1235 && (!FalseMBB || FalseMBB->succ_size() <= 1)); in improveSimpleJumpintoIf()
1237 if (TrueMBB == FalseMBB) in improveSimpleJumpintoIf()
1241 MigrateFalse = needMigrateBlock(FalseMBB); in improveSimpleJumpintoIf()
1251 if (!MigrateFalse && FalseMBB && FalseMBB->pred_size() > 1) in improveSimpleJumpintoIf()
1256 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0); in improveSimpleJumpintoIf()
1373 migrateInstruction(FalseMBB, LandBlk, I); in improveSimpleJumpintoIf()
1388 if (MBB != TrueMBB && MBB != FalseMBB) in improveSimpleJumpintoIf()
1394 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0); in improveSimpleJumpintoIf()
1421 MachineBasicBlock *FalseMBB, MachineBasicBlock *LandMBB) { in mergeIfthenelseBlock() argument
1431 if (FalseMBB) { in mergeIfthenelseBlock()
1432 dbgs() << "BB" << FalseMBB->getNumber(); in mergeIfthenelseBlock()
1468 if (FalseMBB) { in mergeIfthenelseBlock()
1470 MBB->splice(I, FalseMBB, FalseMBB->begin(), in mergeIfthenelseBlock()
1471 FalseMBB->end()); in mergeIfthenelseBlock()
1472 MBB->removeSuccessor(FalseMBB, true); in mergeIfthenelseBlock()
1473 if (LandMBB && FalseMBB->succ_size() != 0) in mergeIfthenelseBlock()
1474 FalseMBB->removeSuccessor(LandMBB, true); in mergeIfthenelseBlock()
1475 retireBlock(FalseMBB); in mergeIfthenelseBlock()
1476 MLI->removeBlock(FalseMBB); in mergeIfthenelseBlock()
1482 if (LandMBB && TrueMBB && FalseMBB) in mergeIfthenelseBlock()