[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 25 23:33:00 PDT 2003
Changes in directory llvm/tools/gccld:
gccld.cpp updated: 1.35 -> 1.36
---
Log message:
Move the instcombine pass before globaldce, so that if globals are made dead by instcombine, that they can be deleted.
---
Diffs of the changes:
Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.35 llvm/tools/gccld/gccld.cpp:1.36
--- llvm/tools/gccld/gccld.cpp:1.35 Thu Jun 19 12:03:51 2003
+++ llvm/tools/gccld/gccld.cpp Wed Jun 25 23:32:31 2003
@@ -400,14 +400,14 @@
//
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;
More information about the llvm-commits
mailing list