Searched refs:OldTerm (Results 1 – 2 of 2) sorted by relevance
1830 static bool SimplifyTerminatorOnSelect(TerminatorInst *OldTerm, Value *Cond, in SimplifyTerminatorOnSelect() argument1840 for (unsigned I = 0, E = OldTerm->getNumSuccessors(); I != E; ++I) { in SimplifyTerminatorOnSelect()1841 BasicBlock *Succ = OldTerm->getSuccessor(I); in SimplifyTerminatorOnSelect()1848 Succ->removePredecessor(OldTerm->getParent()); in SimplifyTerminatorOnSelect()1851 IRBuilder<> Builder(OldTerm); in SimplifyTerminatorOnSelect()1852 Builder.SetCurrentDebugLocation(OldTerm->getDebugLoc()); in SimplifyTerminatorOnSelect()1867 new UnreachableInst(OldTerm->getContext(), OldTerm); in SimplifyTerminatorOnSelect()1880 EraseTerminatorInstAndDCECond(OldTerm); in SimplifyTerminatorOnSelect()
3007 static bool SimplifyTerminatorOnSelect(TerminatorInst *OldTerm, Value *Cond, in SimplifyTerminatorOnSelect() argument3019 for (BasicBlock *Succ : OldTerm->successors()) { in SimplifyTerminatorOnSelect()3026 Succ->removePredecessor(OldTerm->getParent(), in SimplifyTerminatorOnSelect()3030 IRBuilder<> Builder(OldTerm); in SimplifyTerminatorOnSelect()3031 Builder.SetCurrentDebugLocation(OldTerm->getDebugLoc()); in SimplifyTerminatorOnSelect()3045 MDBuilder(OldTerm->getContext()) in SimplifyTerminatorOnSelect()3051 new UnreachableInst(OldTerm->getContext(), OldTerm); in SimplifyTerminatorOnSelect()3064 EraseTerminatorInstAndDCECond(OldTerm); in SimplifyTerminatorOnSelect()