Lines Matching refs:InsertPoint
548 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument
551 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
554 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
559 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
572 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops)) { in checkHoistValue()
879 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
880 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
892 if (SI == InsertPoint) { in checkScopeHoistable()
896 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
913 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
914 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
915 if (RI.HasBranch && InsertPoint != Branch) { in checkScopeHoistable()
916 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
922 assert(InsertPoint != Branch && "Branch must not be the hoist point"); in checkScopeHoistable()
940 InsertPoint = Branch; in checkScopeHoistable()
943 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
946 assert(!DT.dominates(Branch, InsertPoint) && in checkScopeHoistable()
948 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
953 assert(!DT.dominates(SI, InsertPoint) && in checkScopeHoistable()
955 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1039 static bool shouldSplit(Instruction *InsertPoint, in shouldSplit() argument
1045 dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues "; in shouldSplit()
1054 assert(InsertPoint && "Null InsertPoint"); in shouldSplit()
1057 if (!checkHoistValue(V, InsertPoint, DT, Unhoistables, nullptr)) { in shouldSplit()
1145 Instruction *InsertPoint = getBranchInsertPoint(RI); in splitScope() local
1162 PrevInsertPoint = InsertPoint; in splitScope()
1182 PrevInsertPoint = InsertPoint; in splitScope()
1197 PrevInsertPoint = InsertPoint; in splitScope()
1375 Instruction *InsertPoint = OutermostScope->BranchInsertPoint; in setCHRRegions() local
1386 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1397 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()