Rewrite the DeadArgumentElimination pass, to use a more explicit tracking of
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 18 Jun 2008 11:12:53 +0000 (11:12 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 18 Jun 2008 11:12:53 +0000 (11:12 +0000)
commitca85d65277e7d07985712e49b267b34a65fe6aab
tree866c9602893d01dfd213a040202defe743d41296
parentc2afe89019790adb2c590397960d69b8f1d9a537
Rewrite the DeadArgumentElimination pass, to use a more explicit tracking of
dependencies between return values and/or arguments. Also make the handling of
arguments and return values the same.

The pass now looks properly inside returned structs, but only at the first
level (ie, not inside nested structs).

Also add a testcase for testing various variations of (multiple) dead rerturn
values.

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