There are a few instrinsic functions I would like to remove, is this possible? For example, the llvm.lifetime and llvm.dbg instrinsics? You can't simply iterate over the funciton and remove the call instructions, this causes issues. Is there a known structured way of doing this? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120328/4b32c738/attachment.html>
On Mar 28, 2012, at 4:08 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:> There are a few instrinsic functions I would like to remove, is this possible? For example, the llvm.lifetime and llvm.dbg instrinsics? > > You can't simply iterate over the funciton and remove the call instructions, this causes issues. Is there a known structured way of doing this?You could compare against the name of the intrinsic before you delete it and isa<DbgInfoIntrinsic>. -eric