ΒΆunsigned int replaceDominatedUsesWith(
    llvm::Value* From,
    llvm::Value* To,
    llvm::DominatorTree& DT,
    const llvm::BasicBlockEdge& Edge)

Description

Replace each use of 'From' with 'To' if that use is dominated by the given edge. Returns the number of replacements made.

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:454

Parameters

llvm::Value* From
llvm::Value* To
llvm::DominatorTree& DT
const llvm::BasicBlockEdge& Edge