[llvm] [AMDGPU][SplitKit] Skip any uses that are placed before the current block (PR #177270)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 22 01:16:55 PST 2026


================
@@ -218,6 +218,10 @@ void SplitAnalysis::calcLiveBlockInfo() {
     SlotIndex Start, Stop;
     std::tie(Start, Stop) = LIS.getSlotIndexes()->getMBBRange(BI.MBB);
 
+    // Skip any uses that are placed before the current block.
+    while (UseI != UseE && *UseI < Start)
+      ++UseI;
----------------
arsenm wrote:

This looks like just hacking around the assertion, this seems like something that shouldn't happen 

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


More information about the llvm-commits mailing list