Home | History | Annotate | Download | only in Utils

Lines Matching defs:TI

72     TerminatorInst *TI = I->getTerminator();
73 if (TI->getNumSuccessors() > 1 && !isa<IndirectBrInst>(TI))
74 for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i)
75 if (SplitCriticalEdge(TI, i, this)) {
130 /// If MergeIdenticalEdges is true (not the default), *all* edges from TI to the
142 BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
146 if (!isCriticalEdge(TI, SuccNum, MergeIdenticalEdges)) return 0;
148 assert(!isa<IndirectBrInst>(TI) &&
151 BasicBlock *TIBB = TI->getParent();
152 BasicBlock *DestBB = TI->getSuccessor(SuccNum);
159 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
163 NewBI->setDebugLoc(TI->getDebugLoc());
166 TI->setSuccessor(SuccNum, NewBB);
168 // Insert the block into the function... right after the block TI lives in.
198 for (unsigned i = SuccNum+1, e = TI->getNumSuccessors(); i != e; ++i) {
199 if (TI->getSuccessor(i) != DestBB) continue;
205 TI->setSuccessor(i, NewBB);