Replace uses dominated by an edge with another value.
Declared in <llvm/Transforms/Utils/Local.h>
unsigned int
replaceDominatedUsesWith(
Value* From,
Value* To,
DominatorTree& DT,
BasicBlockEdge const& Edge);
Replace each use of 'From' with 'To' if that use is dominated by the given edge. 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 edge dominance. |
| Edge | Edge that must dominate a use for it to be replaced. |