Searched refs:OldTerm (Results 1 – 1 of 1) sorted by relevance
2892 static bool SimplifyTerminatorOnSelect(TerminatorInst *OldTerm, Value *Cond, in SimplifyTerminatorOnSelect() argument2904 for (BasicBlock *Succ : OldTerm->successors()) { in SimplifyTerminatorOnSelect()2911 Succ->removePredecessor(OldTerm->getParent(), in SimplifyTerminatorOnSelect()2915 IRBuilder<> Builder(OldTerm); in SimplifyTerminatorOnSelect()2916 Builder.SetCurrentDebugLocation(OldTerm->getDebugLoc()); in SimplifyTerminatorOnSelect()2930 MDBuilder(OldTerm->getContext()). in SimplifyTerminatorOnSelect()2936 new UnreachableInst(OldTerm->getContext(), OldTerm); in SimplifyTerminatorOnSelect()2949 EraseTerminatorInstAndDCECond(OldTerm); in SimplifyTerminatorOnSelect()