While DAE can't modify the function signature of an externally visible function,
authorNick Lewycky <nicholas@mxc.ca>
Wed, 14 Apr 2010 03:38:11 +0000 (03:38 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 14 Apr 2010 03:38:11 +0000 (03:38 +0000)
commit5894c0b60ef75f382d64b268a5f1a0f2b0db840f
tree3548c964559b1c74cdc401d21b1aaaafaac54234
parent32acbc1e50defdb7e27a4e8274f78988cf302c14
While DAE can't modify the function signature of an externally visible function,
it can check whether the visible direct callers are passing in parameters to
dead arguments and replace those with undef.

This reinstates r94322 with bugs fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101213 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp