Relax a replacement so it is no more restrictive than the original.
Declared in <llvm/Transforms/Utils/Local.h>
void
patchReplacementInstruction(
Instruction* I,
Value* Repl);
Patch the replacement so that it is not more restrictive than the value being replaced. It assumes that the replacement does not get moved from its original position.
| Name | Description |
|---|---|
| I | Original instruction being replaced. |
| Repl | Replacement value that may need patching. |