projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97f4b66
)
Add new DAE pass to gccld. It does not add cause any regressions in the test-suite
author
Chris Lattner
<sabre@nondot.org>
Wed, 18 Jun 2003 16:29:02 +0000
(16:29 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 18 Jun 2003 16:29:02 +0000
(16:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6770
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/gccld/gccld.cpp
patch
|
blob
|
history
diff --git
a/tools/gccld/gccld.cpp
b/tools/gccld/gccld.cpp
index 2fae202030853fb66cd888a53ca80e52b67dcbb8..f04817fdf3d9d607dbbeac060af8939c35442a09 100644
(file)
--- 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());