Displaying 3 results from an estimated 3 matches for "14ae2a33".
2010 Apr 20
0
[LLVMdev] How to delete a instruction?
lucefe wrote:
> Hi,
>
> when I delete some instruction, I got some error prompt message.
Deleting instructions can be a little tricky. The problem is that you
can't delete an instruction until there are no other instructions that
are using it. There are two things that you can do:
1) Order your deletions so that the instructions at the end of def-use
chains are deleted first;
2010 Apr 20
2
[LLVMdev] How to delete a instruction?
Hi,
when I delete some instruction, I got some error prompt message.
- %i.0.reg2mem.0 = phi i32 [ 0, %bb5 ], [ %indvar.next, %bb12 ] ; <i32>
[#uses=2]
- %s.0.reg2mem.0 = phi i32 [ 0, %bb5 ], [ %tmp16, %bb12 ] ; <i32> [#uses=1]
- %tmp14 = tail call i32 @foobar(i32 %i.0.reg2mem.0) nounwind ; <i32>
[#uses=1]
- %tmp16 = add i32 %tmp14, %s.0.reg2mem.0 ; <i32>
2010 Apr 21
2
[LLVMdev] How to delete a instruction?
...s):
for (inst_iterator inst == --inst_end(F); inst != inst_begin(F); --inst) {
Instruction * i = &*inst;
i->eraseFromParent();
}
Best Regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100421/14ae2a33/attachment.html>