aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-04-10 01:33:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-04-10 01:33:05 +0000
commit5d4ed3ba1146adbee09362db94375ea7b900fb56 (patch)
tree9f58c00dfad4c03747343afb5ebe16e11ed3b1ac /tools/opt/opt.cpp
parent7e073baedb8232b9519dbe15ea141ff98ccfe6ae (diff)
downloadexternal_llvm-5d4ed3ba1146adbee09362db94375ea7b900fb56.zip
external_llvm-5d4ed3ba1146adbee09362db94375ea7b900fb56.tar.gz
external_llvm-5d4ed3ba1146adbee09362db94375ea7b900fb56.tar.bz2
Move memcpy / memset optimization pass after GVN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 6155386..80deb75 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -282,8 +282,8 @@ 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, createMemCpyOptPass()); // Remove unneeded memcpy's
addPass(PM, createGVNPass()); // Remove redundancies
+ addPass(PM, createMemCpyOptPass()); // Remove memcpy / form memset
addPass(PM, createSCCPPass()); // Constant prop with SCCP
// Run instcombine after redundancy elimination to exploit opportunities