Lines Matching defs:InsertPoint

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