Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
155cfd23
Commit
155cfd23
authored
20 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Don't miss global optimizations because we run before the inliner
llvm-svn: 16913
parent
6faf3949
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/tools/gccld/GenerateCode.cpp
+1
-0
1 addition, 0 deletions
llvm/tools/gccld/GenerateCode.cpp
with
1 addition
and
0 deletions
llvm/tools/gccld/GenerateCode.cpp
+
1
−
0
View file @
155cfd23
...
@@ -184,6 +184,7 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
...
@@ -184,6 +184,7 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
addPass
(
Passes
,
createFunctionInliningPass
());
// Inline small functions
addPass
(
Passes
,
createFunctionInliningPass
());
// Inline small functions
addPass
(
Passes
,
createPruneEHPass
());
// Remove dead EH info
addPass
(
Passes
,
createPruneEHPass
());
// Remove dead EH info
addPass
(
Passes
,
createGlobalOptimizerPass
());
// Optimize globals again.
addPass
(
Passes
,
createGlobalDCEPass
());
// Remove dead functions
addPass
(
Passes
,
createGlobalDCEPass
());
// Remove dead functions
// If we didn't decide to inline a function, check to see if we can
// If we didn't decide to inline a function, check to see if we can
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment