Lines Matching refs:InsertPoint
312 bool llvm::isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, in isSafeToMoveBefore() argument
320 if (&I == &InsertPoint) in isSafeToMoveBefore()
324 if (I.getNextNode() == &InsertPoint) in isSafeToMoveBefore()
327 if (isa<PHINode>(I) || isa<PHINode>(InsertPoint)) in isSafeToMoveBefore()
334 if (!isControlFlowEquivalent(I, InsertPoint, DT, *PDT)) in isSafeToMoveBefore()
337 if (isReachedBefore(&I, &InsertPoint, &DT, PDT)) in isSafeToMoveBefore()
342 if (I.getParent() == InsertPoint.getParent() && in isSafeToMoveBefore()
345 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) { in isSafeToMoveBefore()
355 if (isReachedBefore(&InsertPoint, &I, &DT, PDT)) in isSafeToMoveBefore()
358 if (&InsertPoint == OpInst) in isSafeToMoveBefore()
365 if (!DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore()
370 const bool MoveForward = domTreeLevelBefore(&DT, &I, &InsertPoint); in isSafeToMoveBefore()
371 Instruction &StartInst = (MoveForward ? I : InsertPoint); in isSafeToMoveBefore()
372 Instruction &EndInst = (MoveForward ? InsertPoint : I); in isSafeToMoveBefore()
376 InstsToCheck.insert(&InsertPoint); in isSafeToMoveBefore()
412 bool llvm::isSafeToMoveBefore(BasicBlock &BB, Instruction &InsertPoint, in isSafeToMoveBefore() argument
419 return isSafeToMoveBefore(I, InsertPoint, DT, PDT, DI, in isSafeToMoveBefore()