[llvm] [AMDGPU][SIOptimizeVGPRLiveRange] Add setpreservesCFG in the legacy pass flow. (PR #118256)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 1 22:01:14 PST 2024
https://github.com/cdevadas created https://github.com/llvm/llvm-project/pull/118256
None
>From 06cc038d9a30b97408328eeb54f0230010b08cf6 Mon Sep 17 00:00:00 2001
From: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
Date: Mon, 2 Dec 2024 11:10:57 +0530
Subject: [PATCH] [AMDGPU][SIOptimizeVGPRLiveRange] Add setpreservesCFG in the
legacy pass flow.
---
llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp b/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
index e0ba5fa06f37a2..ff0b9b4a7574bf 100644
--- a/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
+++ b/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
@@ -155,6 +155,7 @@ class SIOptimizeVGPRLiveRangeLegacy : public MachineFunctionPass {
}
void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
AU.addRequired<LiveVariablesWrapperPass>();
AU.addRequired<MachineDominatorTreeWrapperPass>();
AU.addRequired<MachineLoopInfoWrapperPass>();
More information about the llvm-commits
mailing list