mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Move memcpy / memset optimization pass after GVN.
llvm-svn: 49457
This commit is contained in:
parent
def576f9e6
commit
c0aac87374
@ -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