Lines Matching refs:CvtBBI

1114   BBInfo *CvtBBI = &TrueBBI;  in IfConvertSimple()  local
1119 std::swap(CvtBBI, NextBBI); in IfConvertSimple()
1121 if (CvtBBI->IsDone || in IfConvertSimple()
1122 (CvtBBI->CannotBeCopied && CvtBBI->BB->pred_size() > 1)) { in IfConvertSimple()
1125 CvtBBI->IsAnalyzed = false; in IfConvertSimple()
1129 if (CvtBBI->BB->hasAddressTaken()) in IfConvertSimple()
1140 Redefs.addLiveIns(*CvtBBI->BB); in IfConvertSimple()
1148 if (CvtBBI->BB->pred_size() > 1) { in IfConvertSimple()
1152 CopyAndPredicateBlock(BBI, *CvtBBI, Cond); in IfConvertSimple()
1156 BBI.BB->removeSuccessor(CvtBBI->BB, true); in IfConvertSimple()
1158 RemoveKills(CvtBBI->BB->begin(), CvtBBI->BB->end(), DontKill, *TRI); in IfConvertSimple()
1159 PredicateBlock(*CvtBBI, CvtBBI->BB->end(), Cond); in IfConvertSimple()
1163 MergeBlocks(BBI, *CvtBBI); in IfConvertSimple()
1189 CvtBBI->IsDone = true; in IfConvertSimple()
1200 BBInfo *CvtBBI = &TrueBBI; in IfConvertTriangle() local
1206 std::swap(CvtBBI, NextBBI); in IfConvertTriangle()
1208 if (CvtBBI->IsDone || in IfConvertTriangle()
1209 (CvtBBI->CannotBeCopied && CvtBBI->BB->pred_size() > 1)) { in IfConvertTriangle()
1212 CvtBBI->IsAnalyzed = false; in IfConvertTriangle()
1216 if (CvtBBI->BB->hasAddressTaken()) in IfConvertTriangle()
1225 if (ReverseBranchCondition(*CvtBBI)) { in IfConvertTriangle()
1228 for (MachineBasicBlock::pred_iterator PI = CvtBBI->BB->pred_begin(), in IfConvertTriangle()
1229 E = CvtBBI->BB->pred_end(); PI != E; ++PI) { in IfConvertTriangle()
1245 Redefs.addLiveIns(*CvtBBI->BB); in IfConvertTriangle()
1250 bool HasEarlyExit = CvtBBI->FalseBB != nullptr; in IfConvertTriangle()
1255 CvtNext = MBPI->getEdgeProbability(CvtBBI->BB, NextBBI->BB); in IfConvertTriangle()
1256 CvtFalse = MBPI->getEdgeProbability(CvtBBI->BB, CvtBBI->FalseBB); in IfConvertTriangle()
1258 BBCvt = MBPI->getEdgeProbability(BBI.BB, CvtBBI->BB); in IfConvertTriangle()
1261 if (CvtBBI->BB->pred_size() > 1) { in IfConvertTriangle()
1265 CopyAndPredicateBlock(BBI, *CvtBBI, Cond, true); in IfConvertTriangle()
1269 BBI.BB->removeSuccessor(CvtBBI->BB, true); in IfConvertTriangle()
1272 CvtBBI->NonPredSize -= TII->RemoveBranch(*CvtBBI->BB); in IfConvertTriangle()
1273 PredicateBlock(*CvtBBI, CvtBBI->BB->end(), Cond); in IfConvertTriangle()
1277 MergeBlocks(BBI, *CvtBBI, false); in IfConvertTriangle()
1282 SmallVector<MachineOperand, 4> RevCond(CvtBBI->BrCond.begin(), in IfConvertTriangle()
1283 CvtBBI->BrCond.end()); in IfConvertTriangle()
1301 TII->InsertBranch(*BBI.BB, CvtBBI->FalseBB, nullptr, RevCond, dl); in IfConvertTriangle()
1302 BBI.BB->addSuccessor(CvtBBI->FalseBB, NewFalse); in IfConvertTriangle()
1334 CvtBBI->IsDone = true; in IfConvertTriangle()