Make DeadArgumentElimination more conservative on variadic functions
authorTim Northover <tnorthover@apple.com>
Sun, 9 Jun 2013 02:17:27 +0000 (02:17 +0000)
committerTim Northover <tnorthover@apple.com>
Sun, 9 Jun 2013 02:17:27 +0000 (02:17 +0000)
commitd84b17e157bb27bed236a400cccf4562d0b19d96
tree0e00c7bb41f39ab536f58add300d86e0e49003f7
parent1fe907e7f2de32df894373e24a10c8f54534d770
Make DeadArgumentElimination more conservative on variadic functions

Variadic functions are particularly fragile in the face of ABI changes, so this
limits how much the pass changes them

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