Skip to content

Commit

Permalink
Revert "Optimize"
Browse files Browse the repository at this point in the history
This reverts commit 9905646.
  • Loading branch information
DeepakRajendrakumaran committed Dec 27, 2024
1 parent a5bab76 commit 0ecbbd3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3401,13 +3401,11 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
cntCalleeTrashFloat += CNT_CALLEE_TRASH_HIGHFLOAT;
}

regIntLast = REG_R15;
if (canUseApxEncoding())
{
rbmAllInt |= RBM_HIGHINT;
rbmIntCalleeTrash |= RBM_HIGHINT;
cntCalleeTrashInt += CNT_CALLEE_TRASH_HIGHINT;
regIntLast = REG_R31;
}
#endif // TARGET_AMD64

Expand Down
5 changes: 0 additions & 5 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -11673,7 +11673,6 @@ class Compiler
regMaskTP rbmAllInt;
regMaskTP rbmIntCalleeTrash;
unsigned cntCalleeTrashInt;
regNumber regIntLast;
public:
FORCEINLINE regMaskTP get_RBM_ALLFLOAT() const
{
Expand All @@ -11700,10 +11699,6 @@ class Compiler
{
return this->cntCalleeTrashInt;
}
FORCEINLINE regNumber get_REG_INT_LAST() const
{
return this->regIntLast;
}

#endif // TARGET_AMD64

Expand Down
1 change: 0 additions & 1 deletion src/coreclr/jit/lsra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,6 @@ LinearScan::LinearScan(Compiler* theCompiler)
rbmFltCalleeTrash = compiler->rbmFltCalleeTrash;
rbmAllInt = compiler->rbmAllInt;
rbmIntCalleeTrash = compiler->rbmIntCalleeTrash;
regIntLast = compiler->regIntLast;
#endif // TARGET_AMD64

#if defined(TARGET_XARCH)
Expand Down
5 changes: 0 additions & 5 deletions src/coreclr/jit/lsra.h
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,6 @@ class LinearScan : public LinearScanInterface
regMaskTP rbmFltCalleeTrash;
regMaskTP rbmAllInt;
regMaskTP rbmIntCalleeTrash;
regNumber regIntLast;

FORCEINLINE regMaskTP get_RBM_ALLFLOAT() const
{
Expand All @@ -2086,10 +2085,6 @@ class LinearScan : public LinearScanInterface
{
return this->rbmIntCalleeTrash;
}
FORCEINLINE regNumber get_REG_INT_LAST() const
{
return this->regIntLast;
}
#endif // TARGET_AMD64

#if defined(TARGET_XARCH)
Expand Down
14 changes: 0 additions & 14 deletions src/coreclr/jit/lsrabuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2821,11 +2821,7 @@ void LinearScan::buildIntervals()
needNonIntegerRegisters |= compiler->compFloatingPointUsed;
if (!needNonIntegerRegisters)
{
#ifdef TARGET_AMD64
availableRegCount = (regIntLast - REG_INT_FIRST + 1);
#else
availableRegCount = REG_INT_COUNT;
#endif
}

#ifdef HAS_MORE_THAN_64_REGISTERS
Expand All @@ -2842,17 +2838,7 @@ void LinearScan::buildIntervals()
#ifdef HAS_MORE_THAN_64_REGISTERS
else if (availableRegCount < (sizeof(regMaskTP) * 8))
{
#ifdef TARGET_AMD64
regMaskSmall mask = ~RBM_NONE;
if (regIntLast == REG_R15)
{
regMaskSmall highInt = (regMaskSmall)RBM_HIGHINT;
mask = mask & ~highInt;
}
actualRegistersMask = regMaskTP(mask, availableMaskRegs);
#else
actualRegistersMask = regMaskTP(~RBM_NONE, availableMaskRegs);
#endif
}
#endif
else
Expand Down

0 comments on commit 0ecbbd3

Please sign in to comment.