Lines Matching full:landblk
1015 LandBlk;
1023 LandBlk = *TrueMBB->succ_begin();
1026 LandBlk = FalseMBB;
1034 LandBlk = FalseMBB;
1038 LandBlk = *FalseMBB->succ_begin();
1041 LandBlk = *TrueMBB->succ_begin();
1046 // improveSimpleJumpinfoIf can handle the case where landBlk == NULL but the
1047 // new BB created for landBlk==NULL may introduce new challenge to the
1049 if (LandBlk &&
1052 Cloned += improveSimpleJumpintoIf(MBB, TrueMBB, FalseMBB, &LandBlk);
1065 mergeIfthenelseBlock(BranchMI, MBB, TrueMBB, FalseMBB, LandBlk);
1299 MachineBasicBlock *LandBlk = *LandMBBPtr;
1323 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);
1326 // org: headBlk => if () {trueBlk} else {falseBlk} => landBlk
1330 // => landBlk => if (initReg) {org trueBlk} else {org falseBlk}
1331 // => org landBlk
1332 // if landBlk->pred_size() > 2, put the about if-else inside
1345 if (!LandBlk) {
1346 LandBlk = HeadMBB->getParent()->CreateMachineBasicBlock();
1347 HeadMBB->getParent()->push_back(LandBlk); //insert to function
1350 TrueMBB->addSuccessor(LandBlk);
1352 HeadMBB->addSuccessor(LandBlk);
1356 FalseMBB->addSuccessor(LandBlk);
1358 HeadMBB->addSuccessor(LandBlk);
1364 bool LandBlkHasOtherPred = (LandBlk->pred_size() > 2);
1366 //insert AMDGPU::ENDIF to avoid special case "input landBlk == NULL"
1367 MachineBasicBlock::iterator I = insertInstrBefore(LandBlk, AMDGPU::ENDIF);
1374 insertCondBranchBefore(LandBlk, I, AMDGPU::IF_PREDICATE_SET,
1378 insertCondBranchBefore(LandBlk, I, AMDGPU::IF_PREDICATE_SET, InitReg,
1382 migrateInstruction(TrueMBB, LandBlk, I);
1391 migrateInstruction(FalseMBB, LandBlk, I);
1402 // put initReg = 2 to other predecessors of landBlk
1403 for (MachineBasicBlock::pred_iterator PI = LandBlk->pred_begin(),
1404 PE = LandBlk->pred_end(); PI != PE; ++PI) {
1412 showImproveSimpleJumpintoIf(HeadMBB, TrueMBB, FalseMBB, LandBlk, 0);
1415 // update landBlk
1416 *LandMBBPtr = LandBlk;
1482 // landBlk