[llvm] [AMDGPU] Use LV wrapperPass in getAnalysisUsage. (PR #123044)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 03:47:22 PST 2025


https://github.com/cdevadas created https://github.com/llvm/llvm-project/pull/123044

None

>From a244f33b76fd959f8a9d660354703571f8b3d1d7 Mon Sep 17 00:00:00 2001
From: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
Date: Thu, 5 Dec 2024 14:01:18 +0530
Subject: [PATCH] [AMDGPU] Use LV wrapperPass in getAnalysisUsage.

---
 llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
index 722a79be915dcb..ed5390b96ed4b5 100644
--- a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
@@ -152,7 +152,7 @@ class SILowerControlFlow : public MachineFunctionPass {
     AU.addPreserved<MachineDominatorTreeWrapperPass>();
     AU.addPreserved<SlotIndexesWrapperPass>();
     AU.addPreserved<LiveIntervalsWrapperPass>();
-    AU.addPreservedID(LiveVariablesID);
+    AU.addPreserved<LiveVariablesWrapperPass>();
     MachineFunctionPass::getAnalysisUsage(AU);
   }
 };



More information about the llvm-commits mailing list