From b491bd9826763c994d455f090f48eae68a33f797 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 25 Mar 2026 13:03:47 -0700 Subject: [PATCH] [DSE] Fix missed dependency update in #188253 (#188573) DSE no longer requires LoopInfo, so this dependency is no longer correct. Update it to CycleInfo to fix a crash when using the legacy PM. Note: This crash is kind of hard to hit with default LLVM tools since `opt` can no longer use the legacy PM, but it happens on any invocation of clang when targeting the DirectX backend. --- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index 75552f7af4bb..d3ae9a6cf8d8 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -2831,7 +2831,7 @@ INITIALIZE_PASS_DEPENDENCY(GlobalsAAWrapperPass) INITIALIZE_PASS_DEPENDENCY(MemorySSAWrapperPass) INITIALIZE_PASS_DEPENDENCY(MemoryDependenceWrapperPass) INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass) -INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass) +INITIALIZE_PASS_DEPENDENCY(CycleInfoWrapperPass) INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker) INITIALIZE_PASS_END(DSELegacyPass, "dse", "Dead Store Elimination", false, false)