forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into consolidation
- Loading branch information
Showing
683 changed files
with
2,565 additions
and
1,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,10 +40,11 @@ jobs: | |
- (Alpine.310.Amd64.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.10-helix-3043688-20190918214010 | ||
- (Alpine.311.Amd64.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.11-helix-08e8e40-20200107182408 | ||
|
||
# Issue tracking this being re-enabled https://github.com/dotnet/runtime/issues/1723 | ||
# Linux musl arm64 | ||
- ${{ if eq(parameters.platform, 'Linux_musl_arm64') }}: | ||
- ${{ if eq(parameters.jobParameters.isFullMatrix, true) }}: | ||
- (Alpine.38.Arm64.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.8-helix-arm64v8-a45aeeb-20190620184035 | ||
#- ${{ if eq(parameters.platform, 'Linux_musl_arm64') }}: | ||
# - ${{ if eq(parameters.jobParameters.isFullMatrix, true) }}: | ||
# - (Alpine.38.Arm64.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.8-helix-arm64v8-a45aeeb-20190620184035 | ||
|
||
# Linux x64 | ||
- ${{ if eq(parameters.platform, 'Linux_x64') }}: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
diff --git a/src/coreclr/src/jit/importer.cpp b/src/coreclr/src/jit/importer.cpp | ||
index a71c325ff48..c0569355c89 100644 | ||
--- a/src/coreclr/src/jit/importer.cpp | ||
+++ b/src/coreclr/src/jit/importer.cpp | ||
@@ -15184,41 +15184,41 @@ void Compiler::impImportBlockCode(BasicBlock* block) | ||
info.compCompHnd->compareTypesForEquality(resolvedToken.hClass, clsHnd); | ||
|
||
if (compare == TypeCompareState::Must) | ||
{ | ||
JITDUMP("\nOptimizing %s (%s) -- type test will succeed\n", | ||
opcode == CEE_UNBOX ? "UNBOX" : "UNBOX.ANY", eeGetClassName(clsHnd)); | ||
|
||
// For UNBOX, null check (if necessary), and then leave the box payload byref on the stack. | ||
if (opcode == CEE_UNBOX) | ||
{ | ||
GenTree* cloneOperand; | ||
op1 = impCloneExpr(op1, &cloneOperand, NO_CLASS_HANDLE, (unsigned)CHECK_SPILL_ALL, | ||
nullptr DEBUGARG("optimized unbox clone")); | ||
|
||
GenTree* boxPayloadOffset = gtNewIconNode(TARGET_POINTER_SIZE, TYP_I_IMPL); | ||
GenTree* boxPayloadAddress = | ||
gtNewOperNode(GT_ADD, TYP_BYREF, cloneOperand, boxPayloadOffset); | ||
GenTree* nullcheck = gtNewOperNode(GT_NULLCHECK, TYP_I_IMPL, op1); | ||
block->bbFlags |= BBF_HAS_NULLCHECK; | ||
optMethodFlags |= OMF_HAS_NULLCHECK; | ||
- GenTree* result = gtNewOperNode(GT_COMMA, TYP_BYREF, nullcheck, boxPayloadAddress); | ||
+ GenTree* result = gtNewOperNode(GT_COMMA, TYP_BYREF, nullcheck, boxPayloadAddress); | ||
impPushOnStack(result, tiRetVal); | ||
break; | ||
} | ||
|
||
// For UNBOX.ANY load the struct from the box payload byref (the load will nullcheck) | ||
assert(opcode == CEE_UNBOX_ANY); | ||
GenTree* boxPayloadOffset = gtNewIconNode(TARGET_POINTER_SIZE, TYP_I_IMPL); | ||
GenTree* boxPayloadAddress = gtNewOperNode(GT_ADD, TYP_BYREF, op1, boxPayloadOffset); | ||
impPushOnStack(boxPayloadAddress, tiRetVal); | ||
oper = GT_OBJ; | ||
goto OBJ; | ||
} | ||
else | ||
{ | ||
JITDUMP("\nUnable to optimize %s -- can't resolve type comparison\n", | ||
opcode == CEE_UNBOX ? "UNBOX" : "UNBOX.ANY"); | ||
} | ||
} | ||
else | ||
{ |
Oops, something went wrong.