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:
27829ec
)
Add a couple more IPO's
author
Chris Lattner
<sabre@nondot.org>
Mon, 12 Apr 2004 05:38:15 +0000
(
05:38
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 12 Apr 2004 05:38:15 +0000
(
05:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12863
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 c985b8d5d0d22e9c683e6c3e7f1a91cb28bd4ff9..a844ee751a0c0aea4cbf787df451c2f4a2e4e50f 100644
(file)
--- a/
tools/gccld/GenerateCode.cpp
+++ b/
tools/gccld/GenerateCode.cpp
@@
-105,6
+105,9
@@
int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
if (!DisableInline)
addPass(Passes, createFunctionInliningPass()); // Inline small functions
+ addPass(Passes, createPruneEHPass()); // Remove dead EH info
+ addPass(Passes, createGlobalDCEPass()); // Remove dead functions
+
// If we didn't decide to inline a function, check to see if we can
// transform it to pass arguments by value instead of by reference.
addPass(Passes, createArgumentPromotionPass());