[RyuJIT/ARM32] Use helper to update RegRecord
authorHyung-Kyu Choi <hk0110.choi@samsung.com>
Tue, 20 Jun 2017 11:03:32 +0000 (20:03 +0900)
committerHyung-Kyu Choi <hk0110.choi@samsung.com>
Wed, 21 Jun 2017 01:04:47 +0000 (10:04 +0900)
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/b06bb8d7fd5468f606b867839e7f80f40d6df2e4

src/coreclr/src/jit/lsra.cpp

index d7d97a7..1fd2d26 100644 (file)
@@ -7027,14 +7027,11 @@ void LinearScan::processBlockStartLocations(BasicBlock* currentBlock, bool alloc
                     }
                     else
                     {
-                        // This interval is no longer assigned to this register.
-                        targetRegRecord->assignedInterval = nullptr;
+// This interval is no longer assigned to this register.
 #ifdef _TARGET_ARM_
-                        if (assignedInterval->registerType == TYP_DOUBLE)
-                        {
-                            RegRecord* anotherHalfRegRec        = findAnotherHalfRegRec(targetRegRecord);
-                            anotherHalfRegRec->assignedInterval = nullptr;
-                        }
+                        updateAssignedInterval(targetRegRecord, nullptr, assignedInterval->registerType);
+#else
+                        targetRegRecord->assignedInterval = nullptr;
 #endif
                     }
                 }