summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-18 16:29:02 +0000
committerChris Lattner <sabre@nondot.org>2003-06-18 16:29:02 +0000
commita34f440f69ffe1ec18df2fcb649577debd94a680 (patch)
tree5b0a7ed9237564d8f580ce2ef88e0aa8d68cfe30 /tools
parent97f4b664cd8a537cd2bf37b6a9d06a174078e947 (diff)
downloadllvm-a34f440f69ffe1ec18df2fcb649577debd94a680.tar.gz
llvm-a34f440f69ffe1ec18df2fcb649577debd94a680.tar.bz2
llvm-a34f440f69ffe1ec18df2fcb649577debd94a680.tar.xz
Add new DAE pass to gccld. It does not add cause any regressions in the test-suite
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccld/gccld.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp
index 2fae202030..f04817fdf3 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());