Lines Matching refs:InsertPoint
527 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument
531 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue()
538 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue()
544 if (DT.dominates(I, InsertPoint)) { in checkHoistValue()
558 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue()
881 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local
882 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
894 if (SI == InsertPoint) { in checkScopeHoistable()
899 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
916 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable()
917 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
918 if (RI.HasBranch && InsertPoint != Branch) { in checkScopeHoistable()
920 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
926 assert(InsertPoint != Branch && "Branch must not be the hoist point"); in checkScopeHoistable()
943 InsertPoint = Branch; in checkScopeHoistable()
946 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable()
949 assert(!DT.dominates(Branch, InsertPoint) && in checkScopeHoistable()
952 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
957 assert(!DT.dominates(SI, InsertPoint) && in checkScopeHoistable()
960 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1044 static bool shouldSplit(Instruction *InsertPoint, in shouldSplit() argument
1049 assert(InsertPoint && "Null InsertPoint"); in shouldSplit()
1051 dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues "; in shouldSplit()
1063 if (!checkHoistValue(V, InsertPoint, DT, Unhoistables, nullptr, Visited)) { in shouldSplit()
1151 Instruction *InsertPoint = getBranchInsertPoint(RI); in splitScope() local
1168 PrevInsertPoint = InsertPoint; in splitScope()
1188 PrevInsertPoint = InsertPoint; in splitScope()
1203 PrevInsertPoint = InsertPoint; in splitScope()
1381 Instruction *InsertPoint = OutermostScope->BranchInsertPoint; in setCHRRegions() local
1393 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1405 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()