[llvm] [AMDGPU] Implemented a patch to optimize SGPR spills (PR #93668)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 04:42:12 PDT 2024


================
@@ -67,6 +67,9 @@ namespace {
     const MachineBlockFrequencyInfo *MBFI = nullptr;
     SlotIndexes *Indexes = nullptr;
 
+    // - preserves Analysis passes in case RA may be called afterwards.
+    bool preserveRegAllocNeededAnalysis = false;
----------------
arsenm wrote:

There shouldn't be a reason to have a configuration flag for this. The pass can just unconditionally preserve the analyses.

This should also be a separate PR, not just a separate commit in this PR 

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


More information about the llvm-commits mailing list