ΒΆbool isSafeToMoveBefore(
    llvm::Instruction& I,
    llvm::Instruction& InsertPoint,
    llvm::DominatorTree& DT,
    const llvm::PostDominatorTree* PDT = nullptr,
    llvm::DependenceInfo* DI = nullptr,
    bool CheckForEntireBlock = false)

Description

Return true if \p I can be safely moved before \p InsertPoint.

Declared at: llvm/include/llvm/Transforms/Utils/CodeMoverUtils.h:40

Parameters

llvm::Instruction& I
llvm::Instruction& InsertPoint
llvm::DominatorTree& DT
const llvm::PostDominatorTree* PDT = nullptr
llvm::DependenceInfo* DI = nullptr
bool CheckForEntireBlock = false