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:
4a2b23e
)
Don't miss global optimizations because we run before the inliner
author
Chris Lattner
<sabre@nondot.org>
Mon, 11 Oct 2004 04:47:18 +0000
(
04:47
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 11 Oct 2004 04:47:18 +0000
(
04:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16913
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/gccld/GenerateCode.cpp
patch
|
blob
|
history
diff --git
a/tools/gccld/GenerateCode.cpp
b/tools/gccld/GenerateCode.cpp
index a803b43a0b254b3cc63778bc26733a6b1bd12e6d..1144b92a643c8781c47d42094cbade3f9b36096e 100644
(file)
--- a/
tools/gccld/GenerateCode.cpp
+++ b/
tools/gccld/GenerateCode.cpp
@@
-184,6
+184,7
@@
int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
addPass(Passes, createFunctionInliningPass()); // Inline small functions
addPass(Passes, createPruneEHPass()); // Remove dead EH info
+ addPass(Passes, createGlobalOptimizerPass()); // Optimize globals again.
addPass(Passes, createGlobalDCEPass()); // Remove dead functions
// If we didn't decide to inline a function, check to see if we can