[llvm-commits] [llvm] r41787 - in /llvm/trunk/tools: llvm-ld/Optimize.cpp opt/opt.cpp
Owen Anderson
resistor at mac.com
Sat Sep 8 15:23:52 PDT 2007
Author: resistor
Date: Sat Sep 8 17:23:52 2007
New Revision: 41787
URL: http://llvm.org/viewvc/llvm-project?rev=41787&view=rev
Log:
Turn GVN on by default.
Modified:
llvm/trunk/tools/llvm-ld/Optimize.cpp
llvm/trunk/tools/opt/opt.cpp
Modified: llvm/trunk/tools/llvm-ld/Optimize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/Optimize.cpp?rev=41787&r1=41786&r2=41787&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ld/Optimize.cpp (original)
+++ llvm/trunk/tools/llvm-ld/Optimize.cpp Sat Sep 8 17:23:52 2007
@@ -166,8 +166,7 @@
addPass(Passes, createGlobalsModRefPass()); // IP alias analysis
addPass(Passes, createLICMPass()); // Hoist loop invariants
- addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs
- addPass(Passes, createGCSEPass()); // Remove common subexprs
+ addPass(Passes, createGVNPass()); // Remove redundancies
addPass(Passes, createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.
Modified: llvm/trunk/tools/opt/opt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/opt.cpp?rev=41787&r1=41786&r2=41787&view=diff
==============================================================================
--- llvm/trunk/tools/opt/opt.cpp (original)
+++ llvm/trunk/tools/opt/opt.cpp Sat Sep 8 17:23:52 2007
@@ -282,8 +282,7 @@
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
addPass(PM, createLoopUnrollPass()); // Unroll small loops
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
- addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
- addPass(PM, createGCSEPass()); // Remove common subexprs
+ addPass(PM, createGVNPass()); // Remove redundancies
addPass(PM, createSCCPPass()); // Constant prop with SCCP
// Run instcombine after redundancy elimination to exploit opportunities
More information about the llvm-commits
mailing list