ΒΆvoid ReplaceInstWithInst(
BasicBlock::InstListType& BIL,
BasicBlock::iterator& BI,
llvm::Instruction* I)
void ReplaceInstWithInst(
BasicBlock::InstListType& BIL,
BasicBlock::iterator& BI,
llvm::Instruction* I)
Description
Replace the instruction specified by BI with the instruction specified by I. Copies DebugLoc from BI to I, if I doesn't already have a DebugLoc. The original instruction is deleted and BI is updated to point to the new instruction.
Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:110