Lines Matching refs:CurBlock
120 const BasicBlock *CurBlock = &BB; in collectControlConditions() local
124 assert(DT.getNode(CurBlock) && "Expecting a valid DT node for CurBlock"); in collectControlConditions()
125 BasicBlock *IDom = DT.getNode(CurBlock)->getIDom()->getBlock(); in collectControlConditions()
135 if (PDT.dominates(CurBlock, IDom)) { in collectControlConditions()
136 LLVM_DEBUG(dbgs() << CurBlock->getName() in collectControlConditions()
139 } else if (PDT.dominates(CurBlock, BI->getSuccessor(0))) { in collectControlConditions()
140 LLVM_DEBUG(dbgs() << CurBlock->getName() << " is executed when \"" in collectControlConditions()
145 } else if (PDT.dominates(CurBlock, BI->getSuccessor(1))) { in collectControlConditions()
146 LLVM_DEBUG(dbgs() << CurBlock->getName() << " is executed when \"" in collectControlConditions()
160 CurBlock = IDom; in collectControlConditions()
161 } while (CurBlock != &Dominator); in collectControlConditions()