Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BasicBlock *B = ((llvm::Instruction*)(gdi.target))->getParent();
- auto *load_instr = (*(llvm::Instruction*)(gdi.target)).clone();
- /* Insert copied load instruction before actual load instruction */
- B->getInstList().insert(gdi.source_use->getIterator(), load_instr);
- load_instr->setName(load_to_copy->getName());
- args.push_back(load_instr);
- insertPt = load_instr->getNextNode();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement