Repository navigation
Arm64: Fix consecutive register wraparound - #136642
Conversation
Require every register in a wraparound sequence to be available before selecting the sequence. Avoids matching subsets. Correct the masks for four-register sequences starting at V30 and V31.
|
Azure Pipelines: Successfully started running 7 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
@SwapnilGaikwad double checking this is meant to fix #135508 |
@SwapnilGaikwad Anyway, I linked this to 135508 to get this change in. If it isn't meant to fix 135508 somehow, then can you reopen that issue? |
I meant to fix the bugs in wraparound issue while accessing consecutive registers. The original check accepted when a subset was available. This could lead to the using a busy register incorrectly. |
Require every register in a wraparound sequence to be available before selecting the sequence. Avoids matching subsets.
Correct the masks for four-register sequences starting at V30 and V31.
For example, when four consecutive registers are needed, V29, V30, V31, V0 is a valid range only when all four registers are available. Previously, the wraparound checks could select the range when only some registers, such as V30, V31, V0, were available. This could cause LSRA to select busy V29 and assert later.
cc: @dotnet/arm64-contrib @dhartglassMSFT @EgorBo
fixes #135508