[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.
This commit is contained in:
Justin Bogner 2026-03-25 13:03:47 -07:00 committed by GitHub
parent ebd62d652c
commit b491bd9826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)