Home | History | Annotate | Download | only in radeon

Lines Matching full:landblk

225   BlockT *landBlk;
240 LandInformation() : landBlk(NULL) {}
819 BlockT *landBlk;
825 landBlk = *trueBlk->succ_begin();
827 landBlk = NULL;
829 landBlk = falseBlk;
833 landBlk = trueBlk;
837 landBlk = *falseBlk->succ_begin();
840 landBlk = *trueBlk->succ_begin();
845 // improveSimpleJumpinfoIf can handle the case where landBlk == NULL but the
846 // new BB created for landBlk==NULL may introduce new challenge to the
848 if (landBlk != NULL &&
851 cloned += improveSimpleJumpintoIf(curBlk, trueBlk, falseBlk, &landBlk);
864 mergeIfthenelseBlock(branchInstr, curBlk, trueBlk, falseBlk, landBlk);
929 BlockT *landBlk = loopLand->landBlk;
930 assert(landBlk);
931 if (!isRetiredBlock(landBlk)) {
1241 BlockT *landBlk,
1269 if (landBlk) {
1270 errs() << ", land = BB" << landBlk->getNumber() << " size = "
1271 << landBlk->size() << " numPred = " << landBlk->pred_size();
1274 landBlk->print(errs());
1290 BlockT *landBlk = *plandBlk;
1302 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0);
1306 // unsigned landPredSize = landBlk ? landBlk->pred_size() : 0;
1307 // May consider the # landBlk->pred_size() as it represents the number of
1328 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0);
1329 //showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 1);
1332 // org: headBlk => if () {trueBlk} else {falseBlk} => landBlk
1336 // => landBlk => if (initReg) {org trueBlk} else {org falseBlk}
1337 // => org landBlk
1338 // if landBlk->pred_size() > 2, put the about if-else inside
1353 if (landBlk == NULL) {
1354 landBlk = funcRep->CreateMachineBasicBlock();
1355 funcRep->push_back(landBlk); //insert to function
1358 trueBlk->addSuccessor(landBlk);
1360 headBlk->addSuccessor(landBlk);
1364 falseBlk->addSuccessor(landBlk);
1366 headBlk->addSuccessor(landBlk);
1372 bool landBlkHasOtherPred = (landBlk->pred_size() > 2);
1374 //insert AMDGPU::ENDIF to avoid special case "input landBlk == NULL"
1377 (landBlk, CFGTraits::insertInstrBefore(landBlk, AMDGPU::ENDIF, passRep));
1386 CFGTraits::insertCompareInstrBefore(landBlk, insertPos, passRep, cmpResReg,
1388 CFGTraits::insertCondBranchBefore(landBlk, insertPos,
1393 CFGTraits::insertCondBranchBefore(landBlk, insertPos, AMDGPU::IF_LOGICALNZ_i32,
1397 migrateInstruction(trueBlk, landBlk, insertPos);
1406 migrateInstruction(falseBlk, landBlk, insertPos);
1418 // put initReg = 2 to other predecessors of landBlk
1419 for (typename BlockT::pred_iterator predIter = landBlk->pred_begin(),
1420 predIterEnd = landBlk->pred_end(); predIter != predIterEnd;
1430 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0);
1431 //showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 1);
1434 // update landBlk
1435 *plandBlk = landBlk;
1445 BlockT *landBlk) {
1465 mergeLoopbreakBlock(exitingBlk, exitBlk, landBlk, initReg);
1523 BlockT *landBlk) {
1537 if (landBlk == NULL) {
1540 errs() << "BB" << landBlk->getNumber();
1554 // landBlk
1566 if (landBlk && trueBlk->succ_size()!=0) {
1567 trueBlk->removeSuccessor(landBlk);
1577 if (landBlk && falseBlk->succ_size() != 0) {
1578 falseBlk->removeSuccessor(landBlk);
1587 if (landBlk && trueBlk && falseBlk) {
1588 curBlk->addSuccessor(landBlk);
1596 BlockT *landBlk = loopLand->landBlk;
1600 << " land = BB" << landBlk->getNumber() << "\n";
1656 dstBlk->splice(dstBlk->end(), landBlk, landBlk->begin(), landBlk->end());
1658 for (typename BlockT::succ_iterator iter = landBlk->succ_begin(),
1659 iterEnd = landBlk->succ_end(); iter != iterEnd; ++iter) {
1663 removeSuccessor(landBlk);
1664 retireBlock(dstBlk, landBlk);
2340 BlockT *landBlk = loopLand->landBlk;
2341 assert(landBlk);
2342 if (!isRetiredBlock(landBlk)) {
2369 CFGStructurizer<PassT>::recordLoopLandBlock(LoopT *loopRep, BlockT *landBlk,
2374 for (typename BlockT::pred_iterator predIter = landBlk->pred_begin(),
2375 predIterEnd = landBlk->pred_end();
2383 //if landBlk has predecessors that are not in the given loop,
2385 BlockT *newLandBlk = landBlk;
2386 if (inpathBlks.size() != landBlk->pred_size()) {
2389 newLandBlk->addSuccessor(landBlk);
2394 CFGTraits::replaceInstrUseOfBlockWith(curBlk, landBlk, newLandBlk);
2396 curBlk->removeSuccessor(landBlk);
2400 if (exitBlks[i] == landBlk) {
2419 assert(theEntry->landBlk == NULL);
2427 theEntry->landBlk = blk;
2532 return theEntry ? theEntry->landBlk : NULL;