[llvm] [AMDGPU] NFC: Add BBLiveOutMap & LiveOut Cache (PR #93089)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 14:13:30 PDT 2024


================
@@ -613,7 +627,31 @@ GCNScheduleDAGMILive::getBBLiveInMap() const {
       ++I;
     } while (I != E && I->first->getParent() == BB);
   } while (I != E);
-  return getLiveRegMap(BBStarters, false /*After*/, *LIS);
+  return getLiveRegMap(BBStarters, /*After=*/false, *LIS);
+}
+
+DenseMap<MachineInstr *, GCNRPTracker::LiveRegSet>
+GCNScheduleDAGMILive::getBBLiveOutMap() const {
+  assert(!Regions.empty());
+  std::vector<MachineInstr *> BBEnders;
----------------
arsenm wrote:

Took me a while to get what "Enders" were. Maybe LastInstsInBlocks?

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


More information about the llvm-commits mailing list