Replace uses dominated by an instruction with another value.
Declared in <llvm/Transforms/Utils/Local.h>
unsigned int
replaceDominatedUsesWith(
Value* From,
Value* To,
DominatorTree& DT,
Instruction const* I);
Replace each use of 'From' with 'To' if that use is dominated by the given instruction. Returns the number of replacements made.
Number of replacements made.
| Name | Description |
|---|---|
| From | Value whose dominated uses are replaced. |
| To | Replacement value for those uses. |
| DT | Dominator tree used to test instruction dominance. |
| I | Instruction that must dominate a use for it to be replaced. |