[llvm] [llvm][CodeGen] update live intervals for ModuloScheduleExpanderMVE (PR #132677)

Hua Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 01:05:51 PDT 2025


================
@@ -2566,7 +2566,8 @@ void ModuloScheduleExpanderMVE::mergeRegUsesAfterPipeline(Register OrigReg,
 
   // The interval of OrigReg has been modified and should be recalculated when
   // LiveInterval::getInterval() is called.
-  LIS.removeInterval(OrigReg);
+  if (LIS.hasInterval(OrigReg))
+    LIS.removeInterval(OrigReg);
----------------
huaatian wrote:

I moved this piece of code to the position where the live interval of OrigReg becomes invalid.
Updated

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


More information about the llvm-commits mailing list