search for: f993ef47

Displaying 3 results from an estimated 3 matches for "f993ef47".

2012 Jun 18
0
[LLVMdev] Which pass converts call printf to puts?
Hi Thomson, > Ok. So it seems CI->eraseFromParent() removed the old instruction and > the new one is inserted right after this one in the inner function in > the case of printf->puts. There is another line > CI->repalceAllUsesWith(Result). I think this line could also do the > replacement besides inserting the new one in the inner function. What's > the difference
2012 Jun 18
2
[LLVMdev] Which pass converts call printf to puts?
...->replaceAllUsesWith(Result) > does. Only then can the old instruction be removed from the basic block. > > Best regards, > Christoph > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120618/f993ef47/attachment.html>
2012 Jun 18
2
[LLVMdev] Which pass converts call printf to puts?
Ok. So it seems CI->eraseFromParent() removed the old instruction and the new one is inserted right after this one in the inner function in the case of printf->puts. There is another line CI->repalceAllUsesWith(Result). I think this line could also do the replacement besides inserting the new one in the inner function. What's the difference of these 2 replacement methods? Also