diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-06-26 04:32:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-06-26 04:32:31 +0000 |
| commit | e4b7d467f82f7adcaa984257d2a0246ea3c92fba (patch) | |
| tree | cbb257b173c7a20dcd2959d297a7ee297775f8f5 /llvm/tools/gccld/gccld.cpp | |
| parent | 0fe5e45ee9dcad107bf7078642b40bcd2145e112 (diff) | |
| download | bcm5719-llvm-e4b7d467f82f7adcaa984257d2a0246ea3c92fba.tar.gz bcm5719-llvm-e4b7d467f82f7adcaa984257d2a0246ea3c92fba.zip | |
Move the instcombine pass before globaldce, so that if globals are made dead by instcombine, that they can be deleted.
llvm-svn: 6910
Diffstat (limited to 'llvm/tools/gccld/gccld.cpp')
| -rw-r--r-- | llvm/tools/gccld/gccld.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp index eadb5f43403..283118d2940 100644 --- a/llvm/tools/gccld/gccld.cpp +++ b/llvm/tools/gccld/gccld.cpp @@ -400,15 +400,15 @@ int main(int argc, char **argv) { // Passes.add(createDeadArgEliminationPass()); - // Now that we have optimized the program, discard unreachable functions... - // - Passes.add(createGlobalDCEPass()); - // The FuncResolve pass may leave cruft around if functions were prototyped // differently than they were defined. Remove this cruft. // Passes.add(createInstructionCombiningPass()); + // Now that we have optimized the program, discard unreachable functions... + // + Passes.add(createGlobalDCEPass()); + // Add the pass that writes bytecode to the output file... std::string RealBytecodeOutput = OutputFilename; if (!LinkAsLibrary) RealBytecodeOutput += ".bc"; |

