From 7b1df047488b05f3e6a63e57e680e2cbbc9f368e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 18 Jun 2003 16:29:02 +0000 Subject: [PATCH] Add new DAE pass to gccld. It does not add cause any regressions in the test-suite llvm-svn: 6770 --- tools/gccld/gccld.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index 2fae2020308..f04817fdf3d 100644 --- a/tools/gccld/gccld.cpp +++ b/tools/gccld/gccld.cpp @@ -396,6 +396,10 @@ int main(int argc, char **argv) { Passes.add(createInternalizePass()); } + // Remove unused arguments from functions... + // + Passes.add(createDeadArgEliminationPass()); + // Now that we have optimized the program, discard unreachable functions... // Passes.add(createGlobalDCEPass());