Lines Matching refs:trueBlk
817 BlockT *trueBlk = CFGTraits::getTrueBranch(branchInstr); in ifPatternMatch() local
823 if (trueBlk->succ_size() == 1 && falseBlk->succ_size() == 1 in ifPatternMatch()
824 && *trueBlk->succ_begin() == *falseBlk->succ_begin()) { in ifPatternMatch()
825 landBlk = *trueBlk->succ_begin(); in ifPatternMatch()
826 } else if (trueBlk->succ_size() == 0 && falseBlk->succ_size() == 0) { in ifPatternMatch()
828 } else if (trueBlk->succ_size() == 1 && *trueBlk->succ_begin() == falseBlk) { in ifPatternMatch()
832 && *falseBlk->succ_begin() == trueBlk) { in ifPatternMatch()
833 landBlk = trueBlk; in ifPatternMatch()
834 trueBlk = NULL; in ifPatternMatch()
836 && isSameloopDetachedContbreak(trueBlk, falseBlk)) { in ifPatternMatch()
838 } else if (trueBlk->succ_size() == 1 in ifPatternMatch()
839 && isSameloopDetachedContbreak(falseBlk, trueBlk)) { in ifPatternMatch()
840 landBlk = *trueBlk->succ_begin(); in ifPatternMatch()
842 return handleJumpintoIf(curBlk, trueBlk, falseBlk); in ifPatternMatch()
849 ((trueBlk && trueBlk->pred_size() > 1) in ifPatternMatch()
851 cloned += improveSimpleJumpintoIf(curBlk, trueBlk, falseBlk, &landBlk); in ifPatternMatch()
854 if (trueBlk && trueBlk->pred_size() > 1) { in ifPatternMatch()
855 trueBlk = cloneBlockForPredecessor(trueBlk, curBlk); in ifPatternMatch()
864 mergeIfthenelseBlock(branchInstr, curBlk, trueBlk, falseBlk, landBlk); in ifPatternMatch()
1177 BlockT *trueBlk, in handleJumpintoIf() argument
1179 int num = handleJumpintoIfImp(headBlk, trueBlk, falseBlk); in handleJumpintoIf()
1184 num = handleJumpintoIfImp(headBlk, falseBlk, trueBlk); in handleJumpintoIf()
1191 BlockT *trueBlk, in handleJumpintoIfImp() argument
1197 downBlk = trueBlk; in handleJumpintoIfImp()
1201 << " true = BB" << trueBlk->getNumber() in handleJumpintoIfImp()
1202 << ", numSucc=" << trueBlk->succ_size() in handleJumpintoIfImp()
1217 num += cloneOnSideEntryTo(headBlk, trueBlk, downBlk); in handleJumpintoIfImp()
1239 BlockT *trueBlk, in showImproveSimpleJumpintoIf() argument
1251 if (trueBlk) { in showImproveSimpleJumpintoIf()
1252 errs() << ", true = BB" << trueBlk->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1253 << trueBlk->size() << " numPred = " << trueBlk->pred_size(); in showImproveSimpleJumpintoIf()
1256 trueBlk->print(errs()); in showImproveSimpleJumpintoIf()
1284 BlockT *trueBlk, in improveSimpleJumpintoIf() argument
1292 assert((trueBlk == NULL || trueBlk->succ_size() <= 1) in improveSimpleJumpintoIf()
1295 if (trueBlk == falseBlk) { in improveSimpleJumpintoIf()
1302 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0); in improveSimpleJumpintoIf()
1309 migrateTrue = needMigrateBlock(trueBlk); in improveSimpleJumpintoIf()
1319 if (!migrateTrue && trueBlk && trueBlk->pred_size() > 1) { in improveSimpleJumpintoIf()
1328 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0); in improveSimpleJumpintoIf()
1357 if (trueBlk) { in improveSimpleJumpintoIf()
1358 trueBlk->addSuccessor(landBlk); in improveSimpleJumpintoIf()
1397 migrateInstruction(trueBlk, landBlk, insertPos); in improveSimpleJumpintoIf()
1401 CFGTraits::insertAssignInstrBefore(trueBlk, passRep, initReg, 1); in improveSimpleJumpintoIf()
1423 if (curBlk != trueBlk && curBlk != falseBlk) { in improveSimpleJumpintoIf()
1430 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0); in improveSimpleJumpintoIf()
1521 BlockT *trueBlk, in mergeIfthenelseBlock() argument
1527 if (trueBlk) { in mergeIfthenelseBlock()
1528 errs() << "BB" << trueBlk->getNumber(); in mergeIfthenelseBlock()
1563 if (trueBlk) { in mergeIfthenelseBlock()
1564 curBlk->splice(branchInstrPos, trueBlk, FirstNonDebugInstr(trueBlk), trueBlk->end()); in mergeIfthenelseBlock()
1565 curBlk->removeSuccessor(trueBlk); in mergeIfthenelseBlock()
1566 if (landBlk && trueBlk->succ_size()!=0) { in mergeIfthenelseBlock()
1567 trueBlk->removeSuccessor(landBlk); in mergeIfthenelseBlock()
1569 retireBlock(curBlk, trueBlk); in mergeIfthenelseBlock()
1587 if (landBlk && trueBlk && falseBlk) { in mergeIfthenelseBlock()