Repository navigation
[RyuJIT/ARM32] Update LinearScan::resolveLocalRef() for ARM32 - #12194
Conversation
|
@dotnet-bot test Windows_NT x64 Debug Build and Test |
|
cc @dotnet/arm32-contrib |
CarolEidt
left a comment
There was a problem hiding this comment.
LGTM, though it would be nice to extract the duplicate code
|
|
||
| nextPhysRegRecord->assignedInterval = nullptr; | ||
| } | ||
| #endif |
There was a problem hiding this comment.
It might be nice to extract this, perhaps into a method called ResetAssignedReg(RegRecord, RegisterType). With a bit of refactoring it could also be used in unassignPhysReg()
There was a problem hiding this comment.
@CarolEidt You are right and I'm planning to do some refactoring for lsra.cpp.
For example, we can reuse part of checkAndClearInterval and checkAndAssignInterval when updating assignedInterval in RegRecord.
If you don't mind I will make another PR for refactoring after remaining bugs in register allocation for ryujit/arm32 are fixed.
d30cff6 to
d36e4d2
Compare
|
@CarolEidt PTAL. I've update the PR with refactoring I'm going to apply similar refactoring to whole |
CarolEidt
left a comment
There was a problem hiding this comment.
LGTM with just some typos in the comments.
| #ifdef _TARGET_ARM_ | ||
| //----------------------------------------------------------------------------- | ||
| // updateAssignedInterval: Update assigned interval of register for ARM32 | ||
| // considering reigster type. When reigster type is TYP_DOUBLE, update |
There was a problem hiding this comment.
Typo: "reigster" -> "register" also a couple of places below.
There was a problem hiding this comment.
Thanks! I found same typo across lsra.cpp.
|
@hqueue Can you fix the formatting? |
|
@dotnet-bot please test Ubuntu x64 Formatting |
@BruceForstall It's weird, because the formatting error is from code in master branch (which I've submitted before and already merged without formatting error #12185.). There is no code related to formatting error in this PR. I will rebase this PR to fix the formatting. |
Update LinearScan::resolveLocalRef() - Always update two float register consisting a double register - Use helper function for ARM32 double register - Use stronger assertion condition Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Introduce updateAssignedInterval() to update assigned interval of ARM32 register considering register type. Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
ba071fa to
47cd5cb
Compare
Fix #11847
Update LinearScan::resolveLocalRef()