[llvm] c16c0e2 - [AMDGPU][SIOptimizeVGPRLiveRange] Add setpreservesCFG in the legacy pass flow. (#118256)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 09:46:09 PST 2024
Author: Christudasan Devadasan
Date: 2024-12-02T23:16:03+05:30
New Revision: c16c0e26236d0468a2411cb3bce219d3c70650e9
URL: https://github.com/llvm/llvm-project/commit/c16c0e26236d0468a2411cb3bce219d3c70650e9
DIFF: https://github.com/llvm/llvm-project/commit/c16c0e26236d0468a2411cb3bce219d3c70650e9.diff
LOG: [AMDGPU][SIOptimizeVGPRLiveRange] Add setpreservesCFG in the legacy pass flow. (#118256)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
Removed:
################################################################################
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