aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-09-08 22:23:52 +0000
committerOwen Anderson <resistor@mac.com>2007-09-08 22:23:52 +0000
commit1b2959278989a31a23fee2d82cdb30c50f688c7d (patch)
treeb7bb822198bba487baa0498b521e372e4e160f7f /tools
parent082753802dc328e81d1b3f286a855ad39c533a4e (diff)
downloadexternal_llvm-1b2959278989a31a23fee2d82cdb30c50f688c7d.zip
external_llvm-1b2959278989a31a23fee2d82cdb30c50f688c7d.tar.gz
external_llvm-1b2959278989a31a23fee2d82cdb30c50f688c7d.tar.bz2
Turn GVN on by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-ld/Optimize.cpp3
-rw-r--r--tools/opt/opt.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp
index 49b8f42..4eb846b 100644
--- a/tools/llvm-ld/Optimize.cpp
+++ b/tools/llvm-ld/Optimize.cpp
@@ -166,8 +166,7 @@ void Optimize(Module* M) {
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.
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index e990c7f..9d71459 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -282,8 +282,7 @@ void AddStandardCompilePasses(PassManager &PM) {
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