Lines Matching refs:TrueMBB

257       MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
259 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
261 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
264 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
272 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB,
916 MachineBasicBlock *TrueMBB = getTrueBranch(BranchMI); in ifPatternMatch() local
917 NumMatch += serialPatternMatch(TrueMBB); in ifPatternMatch()
918 NumMatch += ifPatternMatch(TrueMBB); in ifPatternMatch()
925 assert (!TrueMBB->succ_empty() || !FalseMBB->succ_empty()); in ifPatternMatch()
927 if (TrueMBB->succ_size() == 1 && FalseMBB->succ_size() == 1 in ifPatternMatch()
928 && *TrueMBB->succ_begin() == *FalseMBB->succ_begin()) { in ifPatternMatch()
930 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
931 } else if (TrueMBB->succ_size() == 1 && *TrueMBB->succ_begin() == FalseMBB) { in ifPatternMatch()
936 && *FalseMBB->succ_begin() == TrueMBB) { in ifPatternMatch()
939 std::swap(TrueMBB, FalseMBB); in ifPatternMatch()
944 && isSameloopDetachedContbreak(TrueMBB, FalseMBB)) { in ifPatternMatch()
946 } else if (TrueMBB->succ_size() == 1 in ifPatternMatch()
947 && isSameloopDetachedContbreak(FalseMBB, TrueMBB)) { in ifPatternMatch()
948 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
950 return NumMatch + handleJumpintoIf(MBB, TrueMBB, FalseMBB); in ifPatternMatch()
957 ((TrueMBB && TrueMBB->pred_size() > 1) in ifPatternMatch()
959 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk); in ifPatternMatch()
962 if (TrueMBB && TrueMBB->pred_size() > 1) { in ifPatternMatch()
963 TrueMBB = cloneBlockForPredecessor(TrueMBB, MBB); in ifPatternMatch()
972 mergeIfthenelseBlock(BranchMI, MBB, TrueMBB, FalseMBB, LandBlk); in ifPatternMatch()
1065 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIf() argument
1066 int Num = handleJumpintoIfImp(HeadMBB, TrueMBB, FalseMBB); in handleJumpintoIf()
1070 Num = handleJumpintoIfImp(HeadMBB, FalseMBB, TrueMBB); in handleJumpintoIf()
1076 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIfImp() argument
1081 DownBlk = TrueMBB; in handleJumpintoIfImp()
1084 << " true = BB" << TrueMBB->getNumber() in handleJumpintoIfImp()
1085 << ", numSucc=" << TrueMBB->succ_size() << " false = BB" in handleJumpintoIfImp()
1094 Num += cloneOnSideEntryTo(HeadMBB, TrueMBB, DownBlk); in handleJumpintoIfImp()
1114 MachineBasicBlock *HeadMBB, MachineBasicBlock *TrueMBB, in showImproveSimpleJumpintoIf() argument
1124 if (TrueMBB) { in showImproveSimpleJumpintoIf()
1125 dbgs() << ", true = BB" << TrueMBB->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1126 << TrueMBB->size() << " numPred = " << TrueMBB->pred_size(); in showImproveSimpleJumpintoIf()
1129 TrueMBB->print(dbgs()); in showImproveSimpleJumpintoIf()
1157 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, in improveSimpleJumpintoIf() argument
1164 assert((!TrueMBB || TrueMBB->succ_size() <= 1) in improveSimpleJumpintoIf()
1167 if (TrueMBB == FalseMBB) in improveSimpleJumpintoIf()
1170 MigrateTrue = needMigrateBlock(TrueMBB); in improveSimpleJumpintoIf()
1179 if (!MigrateTrue && TrueMBB && TrueMBB->pred_size() > 1) in improveSimpleJumpintoIf()
1186 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1293 migrateInstruction(TrueMBB, LandBlk, I); in improveSimpleJumpintoIf()
1315 if (MBB != TrueMBB && MBB != FalseMBB) in improveSimpleJumpintoIf()
1320 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1343 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, in mergeIfthenelseBlock() argument
1345 assert (TrueMBB); in mergeIfthenelseBlock()
1347 if (TrueMBB) { dbgs() << "BB" << TrueMBB->getNumber(); } dbgs() in mergeIfthenelseBlock()
1371 if (TrueMBB) { in mergeIfthenelseBlock()
1372 MBB->splice(I, TrueMBB, TrueMBB->begin(), TrueMBB->end()); in mergeIfthenelseBlock()
1373 MBB->removeSuccessor(TrueMBB, true); in mergeIfthenelseBlock()
1374 if (LandMBB && TrueMBB->succ_size()!=0) in mergeIfthenelseBlock()
1375 TrueMBB->removeSuccessor(LandMBB, true); in mergeIfthenelseBlock()
1376 retireBlock(TrueMBB); in mergeIfthenelseBlock()
1377 MLI->removeBlock(TrueMBB); in mergeIfthenelseBlock()
1394 if (LandMBB && TrueMBB && FalseMBB) in mergeIfthenelseBlock()