Skip to content

Commit

Permalink
Revert "Kill REG_PROFILER_RET_SCRATCH (#37679)" (#39335)
Browse files Browse the repository at this point in the history
This reverts commit b179e19.
  • Loading branch information
AndyAyersMS authored Jul 17, 2020
1 parent 49186d7 commit 87d8f7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/coreclr/src/jit/lsraarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,6 @@ int LinearScan::BuildNode(GenTree* tree)

case GT_RETURN:
srcCount = BuildReturn(tree);
killMask = getKillSetForReturn();
BuildDefsWithKills(tree, 0, RBM_NONE, killMask);
break;

case GT_RETFILT:
Expand Down
4 changes: 1 addition & 3 deletions src/coreclr/src/jit/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,7 @@ typedef unsigned char regNumberSmall;
// The registers trashed by profiler enter/leave/tailcall hook
// See vm\arm\asmhelpers.asm for more details.
#define RBM_PROFILER_ENTER_TRASH RBM_NONE
// While REG_PROFILER_RET_SCRATCH is not trashed by the method, the register allocator must
// consider it killed by the return.
#define RBM_PROFILER_LEAVE_TRASH RBM_PROFILER_RET_SCRATCH
#define RBM_PROFILER_LEAVE_TRASH RBM_NONE
#define RBM_PROFILER_TAILCALL_TRASH RBM_NONE

// Which register are int and long values returned in ?
Expand Down

0 comments on commit 87d8f7d

Please sign in to comment.