[llvm-commits] [llvm] r51947 - in /llvm/trunk/lib: Analysis/IPA/CallGraph.cpp Transforms/IPO/DeadArgumentElimination.cpp

Matthijs Kooijman matthijs at stdin.nl
Thu Jun 5 01:55:27 PDT 2008


Hi Chris,

> Actually, this can be checked in O(1) time by just calling  
> I.getOperandNo().  If the use_iterator is for the callee operand of  
> the function, then it is ok.  If not,  you know it is passing in the  
> address of the function.  The DeadArgElim code was written before  
> getOperandNo() existed on use_iterator.
I fixed this for the DeadArgumentElimination. I left it unchanged for the
CallGraph code. It could be done there as well, but it requires some
restructuring of code I'm not really into.

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080605/c2129219/attachment.sig>


More information about the llvm-commits mailing list