Correctly sequence fgMorphModToSubMulDiv#8642
Conversation
This method was creating a temp, but the final result was a GT_SUB with a use of the temp as its op1, and it was not setting GTF_REVERSE_OPS. This led to a liveness assert in LSRA.
|
Oops, I take it this was indirectly caused by my recent change that moved magic division to lowering. But how come this worked for ARM64? Lack of tests? |
|
@mikedn - Yes, the specific scenario needed to reproduce this wasn't covered by existing tests. But at least it was reproducible with a very small test case :-) |
|
Hmm, I need to take a closer look at this. It seems to me that even with this fix something doesn't work right, if we do |
|
I opened a separate issue for the problem I'm seeing, it appears to be completely unrelated to the bug you are fixing here - #8648. |
|
@dotnet/jit-contrib PTAL. This fixes bug 359736 |
|
|
|
LGTM |
Correctly sequence fgMorphModToSubMulDiv Commit migrated from dotnet/coreclr@3da9854
This method was creating a temp, but the final result was a GT_SUB with
a use of the temp as its op1, and it was not setting GTF_REVERSE_OPS.
This led to a liveness assert in LSRA.