diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-04-10 01:33:05 +0000 | 
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-10 01:33:05 +0000 | 
| commit | 1be13373fa64b8c921e43ed9bf2ea2881238cbd6 (patch) | |
| tree | 9f58c00dfad4c03747343afb5ebe16e11ed3b1ac /tools/opt | |
| parent | 909ab8b41a1f6072d24af951b70511d8a586d8ac (diff) | |
| download | external_llvm-1be13373fa64b8c921e43ed9bf2ea2881238cbd6.zip external_llvm-1be13373fa64b8c921e43ed9bf2ea2881238cbd6.tar.gz external_llvm-1be13373fa64b8c921e43ed9bf2ea2881238cbd6.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')
| -rw-r--r-- | tools/opt/opt.cpp | 2 | 
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 | 
