diff options
author | Owen Anderson <resistor@mac.com> | 2007-09-08 22:23:52 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-09-08 22:23:52 +0000 |
commit | d06eb2c8791d9430fbae376dda43114fc6bfed5f (patch) | |
tree | b7bb822198bba487baa0498b521e372e4e160f7f /tools/opt | |
parent | 907f28ce3032e67c02a50095659e901de867dd3c (diff) | |
download | external_llvm-d06eb2c8791d9430fbae376dda43114fc6bfed5f.zip external_llvm-d06eb2c8791d9430fbae376dda43114fc6bfed5f.tar.gz external_llvm-d06eb2c8791d9430fbae376dda43114fc6bfed5f.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/opt')
-rw-r--r-- | tools/opt/opt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |