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

Description

Return true if all instructions (except the terminator) in \p BB can be safely moved before \p InsertPoint.

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

Parameters

llvm::BasicBlock& BB
llvm::Instruction& InsertPoint
llvm::DominatorTree& DT
const llvm::PostDominatorTree* PDT = nullptr
llvm::DependenceInfo* DI = nullptr