[llvm] [AMDGPU][CodeGen] Add used analyses to SILowerWWMCopies (PR #123710)

Akshat Oke via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 00:32:18 PST 2025


https://github.com/optimisan created https://github.com/llvm/llvm-project/pull/123710

None

>From b7b609e0cab327f548c98a1aa51ad7b3c16344d3 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