Teach DAE that even though it can't modify the function signature of an
commit56739070eb19f5ed1bbad753e9ddc573ae3c8d37
authorNick Lewycky <nicholas@mxc.ca>
Sat, 23 Jan 2010 19:19:34 +0000 (23 19:19 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 23 Jan 2010 19:19:34 +0000 (23 19:19 +0000)
tree556c6a94a4086d041b146f7c1938a9adef9b1424
parent9dc1771c642e67496b83aaa974aab1b284b1a595
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]