[llvm] [LLVM][CodeGen] Fix register lane liveness tracking in RegisterPressure (PR #88892)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 06:54:52 PDT 2024


================
@@ -617,17 +617,11 @@ void RegisterOperands::adjustLaneLiveness(const LiveIntervals &LIS,
       ++I;
     }
   }
-  for (auto *I = Uses.begin(); I != Uses.end();) {
-    LaneBitmask LiveBefore = getLiveLanesAt(LIS, MRI, true, I->RegUnit,
-                                            Pos.getBaseIndex());
-    LaneBitmask LaneMask = I->LaneMask & LiveBefore;
-    if (LaneMask.none()) {
-      I = Uses.erase(I);
-    } else {
-      I->LaneMask = LaneMask;
-      ++I;
-    }
-  }
+
+  // For uses just copy the copy the information from LIS.
----------------
arsenm wrote:

"copy the copy the"?

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


More information about the llvm-commits mailing list