diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-26 03:34:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-26 03:34:30 +0000 |
commit | f74a401f613bef9a147d4ce960634f0059b391dc (patch) | |
tree | 45c52aa9ca7c6ebc1a7aac2887dab3e2a77b9290 /tools | |
parent | 8dd8d261a48049a372ae285733c5b62ac7dbb5cb (diff) | |
download | external_llvm-f74a401f613bef9a147d4ce960634f0059b391dc.zip external_llvm-f74a401f613bef9a147d4ce960634f0059b391dc.tar.gz external_llvm-f74a401f613bef9a147d4ce960634f0059b391dc.tar.bz2 |
We have this snazzy link-time optimizer. How about we start using it? This
removes some cruft from 255.vortex, cleaning up after DAE and IPCP, which
do horrible, beautiful, things to vortex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 3277c48..982a7e3 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -111,6 +111,11 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { if (!DisableInline) addPass(Passes, createFunctionInliningPass()); // Inline small functions + // The IPO passes may leave cruft around. Clean up after them. + addPass(Passes, createInstructionCombiningPass()); + + addPass(Passes, createScalarReplAggregatesPass()); // Break up allocas + // Run a few AA driven optimizations here and now, to cleanup the code. // Eventually we should put an IP AA in place here. @@ -118,8 +123,7 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs addPass(Passes, createGCSEPass()); // Remove common subexprs - // The FuncResolve pass may leave cruft around if functions were prototyped - // differently than they were defined. Remove this cruft. + // Cleanup and simplify the code after the scalar optimizations. addPass(Passes, createInstructionCombiningPass()); // Delete basic blocks, which optimization passes may have killed... |