[llvm] AMDGPU: Use LiveIntervals in SIOptimizeVGPRLiveRange when available (PR #222385)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 07:08:28 PDT 2026


================
@@ -713,7 +709,6 @@ SIOptimizeVGPRLiveRangePass::run(MachineFunction &MF,
 
   auto PA = getMachineFunctionPassPreservedAnalyses();
   PA.preserve<LiveIntervalsAnalysis>();
-  PA.preserve<LiveVariablesAnalysis>();
----------------
arsenm wrote:

I don't think this matters. I don't recall seeing any new PM preserve calls being conditional on the analysis. If the analysis wasn't available, it's trivially not preserved 

https://github.com/llvm/llvm-project/pull/222385


More information about the llvm-commits mailing list