[llvm] [AMDGPU][CodeGen] SILowerWWMCopies: Declare used analyses (PR #123710)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 00:38:38 PST 2025
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/123710
>From 7b4cefbb62450fef695df0d60e5f1ed624059a4b Mon Sep 17 00:00:00 2001
From: Akshat Oke <Akshat.Oke at amd.com>
Date: Tue, 21 Jan 2025 08:07:38 +0000
Subject: [PATCH] [AMDGPU][CodeGen] Add used analyses to SILowerWWMCopies
---
llvm/lib/Target/AMDGPU/SILowerWWMCopies.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/llvm/lib/Target/AMDGPU/SILowerWWMCopies.cpp b/llvm/lib/Target/AMDGPU/SILowerWWMCopies.cpp
index c663820311b8ce..d80a5f958273a9 100644
--- a/llvm/lib/Target/AMDGPU/SILowerWWMCopies.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerWWMCopies.cpp
@@ -43,6 +43,9 @@ class SILowerWWMCopies : public MachineFunctionPass {
StringRef getPassName() const override { return "SI Lower WWM Copies"; }
void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.addUsedIfAvailable<LiveIntervalsWrapperPass>();
+ AU.addUsedIfAvailable<SlotIndexesWrapperPass>();
+ AU.addUsedIfAvailable<VirtRegMapWrapperLegacy>();
AU.setPreservesAll();
MachineFunctionPass::getAnalysisUsage(AU);
}
More information about the llvm-commits
mailing list