Home
last modified time | relevance | path

Searched refs:SuccNum (Results 1 – 9 of 9) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp133 BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, in SplitCriticalEdge() argument
135 if (!isCriticalEdge(TI, SuccNum, Options.MergeIdenticalEdges)) in SplitCriticalEdge()
142 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge()
156 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge()
188 for (unsigned i = SuccNum+1, e = TI->getNumSuccessors(); i != e; ++i) { in SplitCriticalEdge()
DDemoteRegToStack.cpp47 unsigned SuccNum = GetSuccessorNumber(II->getParent(), II->getNormalDest()); in DemoteRegToStack() local
48 assert(isCriticalEdge(II, SuccNum) && "Expected a critical edge!"); in DemoteRegToStack()
49 BasicBlock *BB = SplitCriticalEdge(II, SuccNum); in DemoteRegToStack()
DCodeExtractor.cpp539 unsigned SuccNum = switchVal++; in emitCallAndSwitchStatement() local
546 brVal = ConstantInt::get(Type::getInt1Ty(Context), !SuccNum); in emitCallAndSwitchStatement()
549 brVal = ConstantInt::get(Type::getInt16Ty(Context), SuccNum); in emitCallAndSwitchStatement()
557 SuccNum), in emitCallAndSwitchStatement()
DBasicBlockUtils.cpp236 unsigned SuccNum = GetSuccessorNumber(BB, Succ); in SplitEdge() local
240 if (SplitCriticalEdge(LatchTerm, SuccNum, CriticalEdgeSplittingOptions(DT, LI) in SplitEdge()
242 return LatchTerm->getSuccessor(SuccNum); in SplitEdge()
/external/llvm/lib/Analysis/
DCFG.cpp87 bool llvm::isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, in isCriticalEdge() argument
89 assert(SuccNum < TI->getNumSuccessors() && "Illegal edge specification!"); in isCriticalEdge()
92 const BasicBlock *Dest = TI->getSuccessor(SuccNum); in isCriticalEdge()
/external/llvm/include/llvm/Analysis/
DCFG.h49 bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum,
/external/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h140 BasicBlock *SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
/external/llvm/lib/CodeGen/
DMachineTraceMetrics.cpp216 unsigned SuccNum = TBI->Succ->getNumber(); in computeHeightResources() local
217 TraceBlockInfo *SuccTBI = &BlockInfo[SuccNum]; in computeHeightResources()
223 ArrayRef<unsigned> SuccPRHeights = getProcResourceHeights(SuccNum); in computeHeightResources()
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp2567 unsigned SuccNum = GetSuccessorNumber(PREPred, CurrentBlock); in performScalarPRE() local
2568 if (isCriticalEdge(PREPred->getTerminator(), SuccNum)) { in performScalarPRE()
2569 toSplit.push_back(std::make_pair(PREPred->getTerminator(), SuccNum)); in performScalarPRE()