Lines Matching refs:InsertPoint

526 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT,  in checkHoistValue()  argument
530 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
537 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
543 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
557 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue()
880 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
881 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
893 if (SI == InsertPoint) { in checkScopeHoistable()
898 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
915 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
916 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
917 if (RI.HasBranch && InsertPoint != Branch) { in checkScopeHoistable()
919 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
925 assert(InsertPoint != Branch && "Branch must not be the hoist point"); in checkScopeHoistable()
942 InsertPoint = Branch; in checkScopeHoistable()
945 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
948 assert(!DT.dominates(Branch, InsertPoint) && in checkScopeHoistable()
951 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
956 assert(!DT.dominates(SI, InsertPoint) && in checkScopeHoistable()
959 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1043 static bool shouldSplit(Instruction *InsertPoint, in shouldSplit() argument
1048 assert(InsertPoint && "Null InsertPoint"); in shouldSplit()
1050 dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues "; in shouldSplit()
1062 if (!checkHoistValue(V, InsertPoint, DT, Unhoistables, nullptr, Visited)) { in shouldSplit()
1150 Instruction *InsertPoint = getBranchInsertPoint(RI); in splitScope() local
1167 PrevInsertPoint = InsertPoint; in splitScope()
1187 PrevInsertPoint = InsertPoint; in splitScope()
1202 PrevInsertPoint = InsertPoint; in splitScope()
1380 Instruction *InsertPoint = OutermostScope->BranchInsertPoint; in setCHRRegions() local
1392 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1404 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()