Lines Matching refs:InsertPoint
310 bool llvm::isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, in isSafeToMoveBefore() argument
318 if (&I == &InsertPoint) in isSafeToMoveBefore()
322 if (I.getNextNode() == &InsertPoint) in isSafeToMoveBefore()
325 if (isa<PHINode>(I) || isa<PHINode>(InsertPoint)) in isSafeToMoveBefore()
332 if (!isControlFlowEquivalent(I, InsertPoint, DT, *PDT)) in isSafeToMoveBefore()
335 if (isReachedBefore(&I, &InsertPoint, &DT, PDT)) in isSafeToMoveBefore()
338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
340 if (isReachedBefore(&InsertPoint, &I, &DT, PDT)) in isSafeToMoveBefore()
343 if (&InsertPoint == OpInst) in isSafeToMoveBefore()
350 if (!DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore()
355 const bool MoveForward = domTreeLevelBefore(&DT, &I, &InsertPoint); in isSafeToMoveBefore()
356 Instruction &StartInst = (MoveForward ? I : InsertPoint); in isSafeToMoveBefore()
357 Instruction &EndInst = (MoveForward ? InsertPoint : I); in isSafeToMoveBefore()
361 InstsToCheck.insert(&InsertPoint); in isSafeToMoveBefore()
397 bool llvm::isSafeToMoveBefore(BasicBlock &BB, Instruction &InsertPoint, in isSafeToMoveBefore() argument
404 return isSafeToMoveBefore(I, InsertPoint, DT, PDT, DI, in isSafeToMoveBefore()