mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +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:
parent
7e073baedb
commit
5d4ed3ba11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user