llvm.org GIT mirror llvm / 2a01593
[PM] Add pgo-memop-opt pass to the new pass manager This pass adds pgo-memop-opt pass to the new pass manager. It is in the old pass manager but somehow left out in the new pass manager. Differential Revision: http://reviews.llvm.org/D39145 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316384 91177308-0d34-0410-b5e6-96231b3b80d8 Rong Xu 1 year, 10 months ago
2 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
361361
362362 invokePeepholeEPCallbacks(FPM, Level);
363363
364 // For PGO use pipeline, try to optimize memory intrinsics such as memcpy
365 // using the size value profile. Don't perform this when optimizing for size.
366 if (PGOOpt && !PGOOpt->ProfileUseFile.empty() &&
367 !isOptimizingForSize(Level))
368 FPM.addPass(PGOMemOPSizeOpt());
369
364370 FPM.addPass(TailCallElimPass());
365371 FPM.addPass(SimplifyCFGPass());
366372
1010 ;
1111 ; GEN: Running pass: PGOInstrumentationGen
1212 ; USE: Running pass: PGOInstrumentationUse
13 ; USE: Running pass: PGOIndirectCallPromotion
14 ; USE: Running pass: PGOMemOPSizeOpt
1315 ; SAMPLE_USE_O: Running pass: ModuleToFunctionPassAdaptor<{{.*}}AddDiscriminatorsPass{{.*}}>
1416 ; SAMPLE_USE_PRE_LINK: Running pass: ModuleToFunctionPassAdaptor<{{.*}}AddDiscriminatorsPass{{.*}}>
1517 ; SAMPLE_USE: Running pass: SimplifyCFGPass