14 #ifndef LLVM_TRANSFORMS_UTILS_CODEMOVERUTILS_H 15 #define LLVM_TRANSFORMS_UTILS_CODEMOVERUTILS_H 23 class PostDominatorTree;
31 const DominatorTree &DT,
32 const PostDominatorTree &PDT);
40 const DominatorTree &DT,
41 const PostDominatorTree &PDT);
45 const DominatorTree &DT,
const PostDominatorTree &PDT,
51 const DominatorTree &DT,
const PostDominatorTree &PDT,
56 #endif // LLVM_TRANSFORMS_UTILS_CODEMOVERUTILS_H bool isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, const DominatorTree &DT, const PostDominatorTree &PDT, DependenceInfo &DI)
Return true if I can be safely moved before InsertPoint.
This class represents lattice values for constants.
void moveInstsBottomUp(BasicBlock &FromBB, BasicBlock &ToBB, const DominatorTree &DT, const PostDominatorTree &PDT, DependenceInfo &DI)
Move instructions from FromBB bottom up to the beginning of ToBB when proven safe.
bool isControlFlowEquivalent(const Instruction &I0, const Instruction &I1, const DominatorTree &DT, const PostDominatorTree &PDT)
Return true if I0 and I1 are control flow equivalent.