diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-09 08:23:16 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-09 08:23:16 +0000 |
commit | a723d1e48f4a261512c28845c53eda569fa5218c (patch) | |
tree | efc3e73b43fe3294365f65fbc5faa23c3a2fd178 /tools/opt/opt.cpp | |
parent | 82a66291b0a0b75016ef3cb638721503565c43d0 (diff) | |
download | external_llvm-a723d1e48f4a261512c28845c53eda569fa5218c.zip external_llvm-a723d1e48f4a261512c28845c53eda569fa5218c.tar.gz external_llvm-a723d1e48f4a261512c28845c53eda569fa5218c.tar.bz2 |
Factor a bunch of functionality related to memcpy and memset transforms out of
GVN and into its own pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index cc09642..6155386 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -282,6 +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, createMemCpyOptPass()); // Remove unneeded memcpy's addPass(PM, createGVNPass()); // Remove redundancies addPass(PM, createSCCPPass()); // Constant prop with SCCP |