Return true if I can be safely moved before InsertPoint.
Declared in <llvm/Transforms/Utils/CodeMoverUtils.h>
bool
isSafeToMoveBefore(
Instruction& I,
Instruction& InsertPoint,
DominatorTree& DT,
PostDominatorTree const* PDT = nullptr,
DependenceInfo* DI = nullptr,
bool CheckForEntireBlock = false);
True if I can be safely moved before InsertPoint.
| Name | Description |
|---|---|
| I | Instruction to move. |
| InsertPoint | Instruction before which I would be placed. |
| DT | Dominator tree for the function. |
| PDT | Optional post-dominator tree; required for a true result. |
| DI | Optional dependence info; required for a true result. |
| CheckForEntireBlock | Whether to relax checks when moving a whole block. |