[PM] Port MemCpyOpt to the new PM.

The need for all these Lookup* functions is just because of calls to
getAnalysis inside methods (i.e. not at the top level) of the
runOnFunction method. They should be straightforward to clean up when
the old PM is gone.

llvm-svn: 272615
This commit is contained in:
Sean Silva
2016-06-14 02:44:55 +00:00
parent fbe79c9d25
commit 6347df0f81
8 changed files with 170 additions and 59 deletions

View File

@@ -127,7 +127,7 @@ void LTOCodeGenerator::initializeLTOPasses() {
initializeLICMPass(R);
initializeMergedLoadStoreMotionLegacyPassPass(R);
initializeGVNLegacyPassPass(R);
initializeMemCpyOptPass(R);
initializeMemCpyOptLegacyPassPass(R);
initializeDCELegacyPassPass(R);
initializeCFGSimplifyPassPass(R);
}