[llvm-commits] [llvm] r50036 - in /llvm/trunk/tools: lto/lto.cpp lto2/LTOCodeGenerator.cpp
Owen Anderson
resistor at mac.com
Mon Apr 21 00:51:08 PDT 2008
Author: resistor
Date: Mon Apr 21 02:51:07 2008
New Revision: 50036
URL: http://llvm.org/viewvc/llvm-project?rev=50036&view=rev
Log:
Use GVN in LTO instead of GCSE+LoadVN.
Modified:
llvm/trunk/tools/lto/lto.cpp
llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/lto.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=50036&r1=50035&r2=50036&view=diff
==============================================================================
--- llvm/trunk/tools/lto/lto.cpp (original)
+++ llvm/trunk/tools/lto/lto.cpp Mon Apr 21 02:51:07 2008
@@ -330,8 +330,7 @@
Passes.add(createGlobalsModRefPass()); // IP alias analysis
Passes.add(createLICMPass()); // Hoist loop invariants
- Passes.add(createLoadValueNumberingPass()); // GVN for load instrs
- Passes.add(createGCSEPass()); // Remove common subexprs
+ Passes.add(createGVNPass()); // Remove common subexprs
Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.
Modified: llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/LTOCodeGenerator.cpp?rev=50036&r1=50035&r2=50036&view=diff
==============================================================================
--- llvm/trunk/tools/lto2/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto2/LTOCodeGenerator.cpp Mon Apr 21 02:51:07 2008
@@ -377,8 +377,7 @@
passes.add(createGlobalsModRefPass()); // IP alias analysis
passes.add(createLICMPass()); // Hoist loop invariants
- passes.add(createLoadValueNumberingPass()); // GVN for load instrs
- passes.add(createGCSEPass()); // Remove common subexprs
+ passes.add(createGVNPass()); // Remove common subexprs
passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.
More information about the llvm-commits
mailing list