mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-30 00:16:48 +00:00
Move memcpy / memset optimization pass after GVN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -282,8 +282,8 @@ void AddStandardCompilePasses(PassManager &PM) {
|
|||||||
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
|
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
|
||||||
addPass(PM, createLoopUnrollPass()); // Unroll small loops
|
addPass(PM, createLoopUnrollPass()); // Unroll small loops
|
||||||
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
|
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
|
||||||
addPass(PM, createMemCpyOptPass()); // Remove unneeded memcpy's
|
|
||||||
addPass(PM, createGVNPass()); // Remove redundancies
|
addPass(PM, createGVNPass()); // Remove redundancies
|
||||||
|
addPass(PM, createMemCpyOptPass()); // Remove memcpy / form memset
|
||||||
addPass(PM, createSCCPPass()); // Constant prop with SCCP
|
addPass(PM, createSCCPPass()); // Constant prop with SCCP
|
||||||
|
|
||||||
// Run instcombine after redundancy elimination to exploit opportunities
|
// Run instcombine after redundancy elimination to exploit opportunities
|
||||||
|
|||||||
Reference in New Issue
Block a user