Skip to content

Commit edf9565

Browse files
lkeegannikic
authored andcommitted
[MemCpyOpt] Add missing MemorySSAWrapperPass dependency macro
Add MemorySSAWrapperPass as a dependency to MemCpyOptLegacyPass, since MemCpyOpt now uses MemorySSA by default. Differential Revision: https://reviews.llvm.org/D98484
1 parent d40b491 commit edf9565

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ INITIALIZE_PASS_DEPENDENCY(MemoryDependenceWrapperPass)
308308
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
309309
INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
310310
INITIALIZE_PASS_DEPENDENCY(GlobalsAAWrapperPass)
311+
INITIALIZE_PASS_DEPENDENCY(MemorySSAWrapperPass)
311312
INITIALIZE_PASS_END(MemCpyOptLegacyPass, "memcpyopt", "MemCpy Optimization",
312313
false, false)
313314

0 commit comments

Comments
 (0)