Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Feb 14, 2024
1 parent 80a8e2c commit 395c103
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17064,13 +17064,13 @@ bool Compiler::gtSplitTree(
}

//------------------------------------------------------------------------
// gWrapWithSicdeEffects: Extracts side effects from sideEffectSource (if any)
// gtWrapWithSideEffects: Extracts side effects from sideEffectSource (if any)
// and wraps the input tree with a COMMA node with them.
//
// Arguments:
// tree - the expression tree to wrap with side effects (if any)
// sideEffectsSource - the expression tree to extract side effects from
// flags - side effect flags to be considered
// sideEffectsFlags - side effect flags to be considered
// ignoreRoot - ignore side effects on the expression root node
//
// Return Value:
Expand Down
7 changes: 7 additions & 0 deletions src/coreclr/jit/valuenum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13098,6 +13098,13 @@ bool Compiler::fgValueNumberHelperCall(GenTreeCall* call)
vnStore->VNPairForFunc(TYP_REF, VNF_OverflowExc, vnStore->VNPForVoid()));
break;

case CORINFO_HELP_CHKCASTINTERFACE:
case CORINFO_HELP_CHKCASTARRAY:
case CORINFO_HELP_CHKCASTCLASS:
case CORINFO_HELP_CHKCASTANY:
// InvalidCastExc for these is set in VNForCast
break;

default:
// Setup vnpExc with the information that multiple different exceptions
// could be generated by this helper
Expand Down

0 comments on commit 395c103

Please sign in to comment.