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:
083de22
)
Run the simplify CFG pass after instcombine which has the effect of deleting
author
Chris Lattner
<sabre@nondot.org>
Thu, 26 Jun 2003 05:29:50 +0000
(
05:29
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 26 Jun 2003 05:29:50 +0000
(
05:29
+0000)
ALL of the global ctor/dtor stuff if it is not used!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6916
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 283118d2940e411ce9871c66d3ade8062ceb140a..5b56bd830d3f47327f8715b6ad5ee1872d02aa37 100644
(file)
--- a/
tools/gccld/gccld.cpp
+++ b/
tools/gccld/gccld.cpp
@@
-405,6
+405,10
@@
int main(int argc, char **argv) {
//
Passes.add(createInstructionCombiningPass());
+ // Delete basic blocks, which optimization passes may have killed...
+ //
+ Passes.add(createCFGSimplificationPass());
+
// Now that we have optimized the program, discard unreachable functions...
//
Passes.add(createGlobalDCEPass());