-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failed '!op1->isUsedFromMemory()' #76511
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue Details"runtime-coreclr outerloop" R2R-CG2 test failures on arm64 in JIT\Regression\JitBlue\Runtime_76273\Runtime_76273\Runtime_76273.cmd:
@dotnet/jit-contrib
|
cc @tannergooding who added this test recently in #76273 |
The fix: diff --git a/src/coreclr/jit/lower.cpp b/src/coreclr/jit/lower.cpp
index 176828d17ed..3fb6ed57317 100644
--- a/src/coreclr/jit/lower.cpp
+++ b/src/coreclr/jit/lower.cpp
@@ -2816,6 +2816,8 @@ GenTree* Lowering::OptimizeConstCompare(GenTree* cmp)
op2->gtType = castToType;
#endif
// If we have any contained memory ops on castOp, they must now not be contained.
+ castOp->ClearContained();
+
if (castOp->OperIs(GT_OR, GT_XOR, GT_AND))
{
GenTree* op1 = castOp->gtGetOp1();
@@ -2829,10 +2831,6 @@ GenTree* Lowering::OptimizeConstCompare(GenTree* cmp)
op2->ClearContained();
}
}
- else
- {
- castOp->ClearContained();
- }
cmp->AsOp()->gtOp1 = castOp; |
Was getting more details on discord, this bug is really "unrelated" to the ADDEX change and is likely just exposed by it due to the other transforms happening. That being said, we are doing |
"runtime-coreclr outerloop" R2R-CG2 test failures on arm64 in JIT\Regression\JitBlue\Runtime_76273\Runtime_76273\Runtime_76273.cmd:
https://dev.azure.com/dnceng-public/public/_build/results?buildId=37881&view=ms.vss-test-web.build-test-results-tab&runId=755738&resultId=108102&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab
@dotnet/jit-contrib
The text was updated successfully, but these errors were encountered: