[llvm] edf9565 - [MemCpyOpt] Add missing MemorySSAWrapperPass dependency macro
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 12:36:27 PDT 2021
Author: Liam Keegan
Date: 2021-03-16T20:30:00+01:00
New Revision: edf9565a8665fcaf7a452f07f77fb08c484f45d7
URL: https://github.com/llvm/llvm-project/commit/edf9565a8665fcaf7a452f07f77fb08c484f45d7
DIFF: https://github.com/llvm/llvm-project/commit/edf9565a8665fcaf7a452f07f77fb08c484f45d7.diff
LOG: [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
Added:
Modified:
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
index 5c1c6b2a2d8f2..f98a06490d98f 100644
--- a/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
+++ b/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
@@ -308,6 +308,7 @@ INITIALIZE_PASS_DEPENDENCY(MemoryDependenceWrapperPass)
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
INITIALIZE_PASS_DEPENDENCY(GlobalsAAWrapperPass)
+INITIALIZE_PASS_DEPENDENCY(MemorySSAWrapperPass)
INITIALIZE_PASS_END(MemCpyOptLegacyPass, "memcpyopt", "MemCpy Optimization",
false, false)
More information about the llvm-commits
mailing list