Lines Matching refs:TrueMBB

254       MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
256 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB);
258 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
261 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB,
269 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB,
924 MachineBasicBlock *TrueMBB = getTrueBranch(BranchMI); in ifPatternMatch() local
925 NumMatch += serialPatternMatch(TrueMBB); in ifPatternMatch()
926 NumMatch += ifPatternMatch(TrueMBB); in ifPatternMatch()
933 assert (!TrueMBB->succ_empty() || !FalseMBB->succ_empty()); in ifPatternMatch()
935 if (TrueMBB->succ_size() == 1 && FalseMBB->succ_size() == 1 in ifPatternMatch()
936 && *TrueMBB->succ_begin() == *FalseMBB->succ_begin()) { in ifPatternMatch()
938 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
939 } else if (TrueMBB->succ_size() == 1 && *TrueMBB->succ_begin() == FalseMBB) { in ifPatternMatch()
944 && *FalseMBB->succ_begin() == TrueMBB) { in ifPatternMatch()
947 std::swap(TrueMBB, FalseMBB); in ifPatternMatch()
952 && isSameloopDetachedContbreak(TrueMBB, FalseMBB)) { in ifPatternMatch()
954 } else if (TrueMBB->succ_size() == 1 in ifPatternMatch()
955 && isSameloopDetachedContbreak(FalseMBB, TrueMBB)) { in ifPatternMatch()
956 LandBlk = *TrueMBB->succ_begin(); in ifPatternMatch()
958 return NumMatch + handleJumpintoIf(MBB, TrueMBB, FalseMBB); in ifPatternMatch()
965 ((TrueMBB && TrueMBB->pred_size() > 1) in ifPatternMatch()
967 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk); in ifPatternMatch()
970 if (TrueMBB && TrueMBB->pred_size() > 1) { in ifPatternMatch()
971 TrueMBB = cloneBlockForPredecessor(TrueMBB, MBB); in ifPatternMatch()
980 mergeIfthenelseBlock(BranchMI, MBB, TrueMBB, FalseMBB, LandBlk); in ifPatternMatch()
1073 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIf() argument
1074 int Num = handleJumpintoIfImp(HeadMBB, TrueMBB, FalseMBB); in handleJumpintoIf()
1078 Num = handleJumpintoIfImp(HeadMBB, FalseMBB, TrueMBB); in handleJumpintoIf()
1084 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB) { in handleJumpintoIfImp() argument
1089 DownBlk = TrueMBB; in handleJumpintoIfImp()
1092 << " true = BB" << TrueMBB->getNumber() in handleJumpintoIfImp()
1093 << ", numSucc=" << TrueMBB->succ_size() << " false = BB" in handleJumpintoIfImp()
1102 Num += cloneOnSideEntryTo(HeadMBB, TrueMBB, DownBlk); in handleJumpintoIfImp()
1122 MachineBasicBlock *HeadMBB, MachineBasicBlock *TrueMBB, in showImproveSimpleJumpintoIf() argument
1132 if (TrueMBB) { in showImproveSimpleJumpintoIf()
1133 dbgs() << ", true = BB" << TrueMBB->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1134 << TrueMBB->size() << " numPred = " << TrueMBB->pred_size(); in showImproveSimpleJumpintoIf()
1137 TrueMBB->print(dbgs()); in showImproveSimpleJumpintoIf()
1165 MachineBasicBlock *TrueMBB, MachineBasicBlock *FalseMBB, in improveSimpleJumpintoIf() argument
1172 assert((!TrueMBB || TrueMBB->succ_size() <= 1) in improveSimpleJumpintoIf()
1175 if (TrueMBB == FalseMBB) in improveSimpleJumpintoIf()
1178 MigrateTrue = needMigrateBlock(TrueMBB); in improveSimpleJumpintoIf()
1187 if (!MigrateTrue && TrueMBB && TrueMBB->pred_size() > 1) in improveSimpleJumpintoIf()
1194 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1301 migrateInstruction(TrueMBB, LandBlk, I); in improveSimpleJumpintoIf()
1325 if (MBB != TrueMBB && MBB != FalseMBB) in improveSimpleJumpintoIf()
1331 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);); in improveSimpleJumpintoIf()
1354 MachineBasicBlock *MBB, MachineBasicBlock *TrueMBB, in mergeIfthenelseBlock() argument
1356 assert (TrueMBB); in mergeIfthenelseBlock()
1358 if (TrueMBB) { dbgs() << "BB" << TrueMBB->getNumber(); } dbgs() in mergeIfthenelseBlock()
1382 if (TrueMBB) { in mergeIfthenelseBlock()
1383 MBB->splice(I, TrueMBB, TrueMBB->begin(), TrueMBB->end()); in mergeIfthenelseBlock()
1384 MBB->removeSuccessor(TrueMBB, true); in mergeIfthenelseBlock()
1385 if (LandMBB && TrueMBB->succ_size()!=0) in mergeIfthenelseBlock()
1386 TrueMBB->removeSuccessor(LandMBB, true); in mergeIfthenelseBlock()
1387 retireBlock(TrueMBB); in mergeIfthenelseBlock()
1388 MLI->removeBlock(TrueMBB); in mergeIfthenelseBlock()
1405 if (LandMBB && TrueMBB && FalseMBB) in mergeIfthenelseBlock()