Lines Matching defs:InsertPoint

525 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT,
529 assert(InsertPoint && "Null InsertPoint");
536 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination");
542 if (DT.dominates(I, InsertPoint)) {
556 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops,
879 Instruction *InsertPoint = getBranchInsertPoint(RI);
880 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n");
892 if (SI == InsertPoint) {
897 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint,
913 // Update InsertPoint after potentially removing selects.
914 InsertPoint = getBranchInsertPoint(RI);
915 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n");
916 if (RI.HasBranch && InsertPoint != Branch) {
918 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint,
924 assert(InsertPoint != Branch && "Branch must not be the hoist point");
941 InsertPoint = Branch;
944 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n");
947 assert(!DT.dominates(Branch, InsertPoint) &&
950 assert(checkHoistValue(Branch->getCondition(), InsertPoint,
955 assert(!DT.dominates(SI, InsertPoint) &&
958 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT,
1042 static bool shouldSplit(Instruction *InsertPoint,
1047 assert(InsertPoint && "Null InsertPoint");
1049 dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues ";
1061 if (!checkHoistValue(V, InsertPoint, DT, Unhoistables, nullptr, Visited)) {
1149 Instruction *InsertPoint = getBranchInsertPoint(RI);
1166 PrevInsertPoint = InsertPoint;
1186 PrevInsertPoint = InsertPoint;
1201 PrevInsertPoint = InsertPoint;
1379 Instruction *InsertPoint = OutermostScope->BranchInsertPoint;
1391 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT,
1403 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT,