Lines Matching refs:FB
124 MachineBasicBlock *FB, MachineBasicBlock *JB) in FlowPattern()
125 : SplitB(B), TrueB(TB), FalseB(FB), JoinB(JB), PredR(PR) {} in FlowPattern()
246 MachineBasicBlock *TB = nullptr, *FB = nullptr; in matchFlowPattern() local
274 TB = T1B, FB = T2B; in matchFlowPattern()
276 TB = T2B, FB = T1B; in matchFlowPattern()
278 if (!MDT->properlyDominates(B, TB) || !MDT->properlyDominates(B, FB)) in matchFlowPattern()
285 assert(TB && FB && "Failed to find triangle control flow blocks"); in matchFlowPattern()
286 unsigned TNP = TB->pred_size(), FNP = FB->pred_size(); in matchFlowPattern()
287 unsigned TNS = TB->succ_size(), FNS = FB->succ_size(); in matchFlowPattern()
295 bool FOk = (FNP == 1 && FNS == 1 && MLI->getLoopFor(FB) == L); in matchFlowPattern()
299 if (SkipExitBranches && MLI->getLoopFor(TB) != MLI->getLoopFor(FB)) in matchFlowPattern()
307 MachineBasicBlock *FSB = (FNS > 0) ? *FB->succ_begin() : nullptr; in matchFlowPattern()
317 if (TSB == FB) in matchFlowPattern()
318 JB = FB; in matchFlowPattern()
319 FB = nullptr; in matchFlowPattern()
328 if ((TB && isPreheader(TB)) || (FB && isPreheader(FB))) { in matchFlowPattern()
329 LLVM_DEBUG(dbgs() << "One of blocks " << PrintMB(TB) << ", " << PrintMB(FB) in matchFlowPattern()
334 FP = FlowPattern(B, PredR, TB, FB, JB); in matchFlowPattern()