[llvm-commits] CVS: llvm/tools/llvm-ld/Optimize.cpp
Reid Spencer
reid at x10sys.com
Fri Dec 10 19:04:05 PST 2004
Changes in directory llvm/tools/llvm-ld:
Optimize.cpp updated: 1.3 -> 1.4
---
Log message:
Revert the last patch. We really do need SimplyCFG.
---
Diffs of the changes: (+3 -0)
Index: llvm/tools/llvm-ld/Optimize.cpp
diff -u llvm/tools/llvm-ld/Optimize.cpp:1.3 llvm/tools/llvm-ld/Optimize.cpp:1.4
--- llvm/tools/llvm-ld/Optimize.cpp:1.3 Fri Dec 10 16:55:35 2004
+++ llvm/tools/llvm-ld/Optimize.cpp Fri Dec 10 21:03:54 2004
@@ -163,6 +163,9 @@
// Cleanup and simplify the code after the scalar optimizations.
addPass(Passes, createInstructionCombiningPass());
+ // Delete basic blocks, which optimization passes may have killed...
+ addPass(Passes, createCFGSimplificationPass());
+
// Now that we have optimized the program, discard unreachable functions...
addPass(Passes, createGlobalDCEPass());
}
More information about the llvm-commits
mailing list