Lines Matching refs:InsertPoint

510 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT,  in checkHoistValue()  argument
514 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
521 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
527 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
541 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue()
872 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
873 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
885 if (SI == InsertPoint) { in checkScopeHoistable()
890 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
907 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
908 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
909 if (RI.HasBranch && InsertPoint != Branch) { in checkScopeHoistable()
911 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
917 assert(InsertPoint != Branch && "Branch must not be the hoist point"); in checkScopeHoistable()
934 InsertPoint = Branch; in checkScopeHoistable()
937 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
940 assert(!DT.dominates(Branch, InsertPoint) && in checkScopeHoistable()
943 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
948 assert(!DT.dominates(SI, InsertPoint) && in checkScopeHoistable()
951 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1035 static bool shouldSplit(Instruction *InsertPoint, in shouldSplit() argument
1040 assert(InsertPoint && "Null InsertPoint"); in shouldSplit()
1042 dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues "; in shouldSplit()
1054 if (!checkHoistValue(V, InsertPoint, DT, Unhoistables, nullptr, Visited)) { in shouldSplit()
1142 Instruction *InsertPoint = getBranchInsertPoint(RI); in splitScope() local
1159 PrevInsertPoint = InsertPoint; in splitScope()
1179 PrevInsertPoint = InsertPoint; in splitScope()
1194 PrevInsertPoint = InsertPoint; in splitScope()
1372 Instruction *InsertPoint = OutermostScope->BranchInsertPoint; in setCHRRegions() local
1384 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1396 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()