Recommit r52459, rewriting of the dead argument elimination pass.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 20 Jun 2008 09:36:16 +0000 (09:36 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 20 Jun 2008 09:36:16 +0000 (09:36 +0000)
commitc95e44b4e0f7aa7a32be2f3649decf2ec006a503
tree0b50427be56fbc40549a82781228492fd9c89b0a
parentf2204d7bb103b1d23c910efc678d5303003635bb
Recommit r52459, rewriting of the dead argument elimination pass.

This is a fixed version that no longer uses multimap::equal_range, which
resulted in a pointer invalidation problem.

Also, DAE::InspectedFunctions was not really necessary, so it got removed.

Lastly, this version no longer applies the extra arg hack on functions who did
not have any arguments to start with.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52532 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp
test/Transforms/DeadArgElim/multdeadretval.ll [new file with mode: 0644]