[llvm-commits] [llvm] r52677 - in /llvm/trunk: lib/Transforms/IPO/DeadArgumentElimination.cpp test/Transforms/DeadArgElim/2008-06-23-DeadAfterLive.ll test/Transforms/DeadArgElim/deadretval2.ll test/Transforms/DeadArgElim/multdeadretval.ll

Matthijs Kooijman matthijs at stdin.nl
Wed Jul 2 09:11:28 PDT 2008


Hi all,

I've attached a new patch, which removes an overzealous assert which was not
appropriated. Even, could you try _this_ patch against SPEC 2006?

> I'm not completely sure how to do the reverse. I think the best approach is to
> add a getArgumentNo() method that takes an operand number and returns the
> number of the corresponding argument. Alternatively, it could take a use
> iterator, Value* or Use* or something like that, but I think that will mostly
> lead to inefficient code.
I've implemented this, see the attached patch (all changes in CallSite.h). If
there are no objections to this, I'll commit the CallSite changes seperately.

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deadarg.diff
Type: text/x-diff
Size: 49191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080702/a1177e25/attachment.diff>
-------------- 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/20080702/a1177e25/attachment.sig>


More information about the llvm-commits mailing list