Teach DAE that even though it can't modify the function signature of an
authorNick Lewycky <nicholas@mxc.ca>
Sat, 23 Jan 2010 19:19:34 +0000 (19:19 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 23 Jan 2010 19:19:34 +0000 (19:19 +0000)
commitdbeecede809c1bffb016e48674622c5e8cb75a0c
tree556c6a94a4086d041b146f7c1938a9adef9b1424
parent2dd7657a5b063e6f77c34f418b7e23654b6fe4a0
Teach DAE that even though it can't modify the function signature of an
externally visible function, it can still find all callers of it and replace
the parameters to a dead argument with undef.

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