Lines Matching refs:InsertPoint
550 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument
554 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
561 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
567 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
581 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue()
900 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
901 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
913 if (SI == InsertPoint) { in checkScopeHoistable()
918 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
935 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
936 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
937 if (RI.HasBranch && InsertPoint != Branch) { in checkScopeHoistable()
939 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
945 assert(InsertPoint != Branch && "Branch must not be the hoist point"); in checkScopeHoistable()
962 InsertPoint = Branch; in checkScopeHoistable()
965 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
968 assert(!DT.dominates(Branch, InsertPoint) && in checkScopeHoistable()
971 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
976 assert(!DT.dominates(SI, InsertPoint) && in checkScopeHoistable()
979 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1063 static bool shouldSplit(Instruction *InsertPoint, in shouldSplit() argument
1068 assert(InsertPoint && "Null InsertPoint"); in shouldSplit()
1070 dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues "; in shouldSplit()
1082 if (!checkHoistValue(V, InsertPoint, DT, Unhoistables, nullptr, Visited)) { in shouldSplit()
1170 Instruction *InsertPoint = getBranchInsertPoint(RI); in splitScope() local
1187 PrevInsertPoint = InsertPoint; in splitScope()
1207 PrevInsertPoint = InsertPoint; in splitScope()
1222 PrevInsertPoint = InsertPoint; in splitScope()
1400 Instruction *InsertPoint = OutermostScope->BranchInsertPoint; in setCHRRegions() local
1412 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1424 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()