summaryrefslogtreecommitdiff
path: root/src/jit/rangecheck.cpp
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-05-22 13:50:38 -0700
committerGitHub <noreply@github.com>2018-05-22 13:50:38 -0700
commit7153e441ef21e9bb5e022229c0808b964b9199e0 (patch)
tree6fe6ff629b7784e528322cb9ab6f922478ca4fc1 /src/jit/rangecheck.cpp
parent32ab54d345a4ab2eb572fe3ba061b6e0d1b31088 (diff)
downloadcoreclr-7153e441ef21e9bb5e022229c0808b964b9199e0.tar.gz
coreclr-7153e441ef21e9bb5e022229c0808b964b9199e0.tar.bz2
coreclr-7153e441ef21e9bb5e022229c0808b964b9199e0.zip
Remove JIT LEGACY_BACKEND code (#18064)
Remove JIT LEGACY_BACKEND code All code related to the LEGACY_BACKEND JIT is removed. This includes all code related to x87 floating-point code generation. Almost 50,000 lines of code have been removed. Remove legacyjit/legacynonjit directories Remove reg pairs Remove tiny instruction descriptors Remove compCanUseSSE2 (it's always true) Remove unused FEATURE_FP_REGALLOC
Diffstat (limited to 'src/jit/rangecheck.cpp')
-rw-r--r--src/jit/rangecheck.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/jit/rangecheck.cpp b/src/jit/rangecheck.cpp
index 3d95ba81fc..d80576d97c 100644
--- a/src/jit/rangecheck.cpp
+++ b/src/jit/rangecheck.cpp
@@ -324,11 +324,7 @@ void RangeCheck::Widen(BasicBlock* block, GenTree* tree, Range* pRange)
bool RangeCheck::IsBinOpMonotonicallyIncreasing(GenTreeOp* binop)
{
-#ifdef LEGACY_BACKEND
- assert(binop->OperIs(GT_ADD, GT_ASG_ADD));
-#else
assert(binop->OperIs(GT_ADD));
-#endif
GenTree* op1 = binop->gtGetOp1();
GenTree* op2 = binop->gtGetOp2();
@@ -411,15 +407,8 @@ bool RangeCheck::IsMonotonicallyIncreasing(GenTree* expr, bool rejectNegativeCon
case GT_ASG:
return IsMonotonicallyIncreasing(asg->gtGetOp2(), rejectNegativeConst);
-#ifdef LEGACY_BACKEND
- case GT_ASG_ADD:
- return IsBinOpMonotonicallyIncreasing(asg);
-#endif
-
default:
-#ifndef LEGACY_BACKEND
noway_assert(false);
-#endif
// All other 'asg->OperGet()' kinds, return false
break;
}
@@ -812,11 +801,7 @@ void RangeCheck::MergeAssertion(BasicBlock* block, GenTree* op, Range* pRange DE
// Compute the range for a binary operation.
Range RangeCheck::ComputeRangeForBinOp(BasicBlock* block, GenTreeOp* binop, bool monotonic DEBUGARG(int indent))
{
-#ifdef LEGACY_BACKEND
- assert(binop->OperIs(GT_ADD, GT_ASG_ADD));
-#else
assert(binop->OperIs(GT_ADD));
-#endif
GenTree* op1 = binop->gtGetOp1();
GenTree* op2 = binop->gtGetOp2();
@@ -907,18 +892,8 @@ Range RangeCheck::ComputeRangeForLocalDef(BasicBlock* block,
return range;
}
-#ifdef LEGACY_BACKEND
- case GT_ASG_ADD:
- // If the operator of the definition is +=, then compute the range of the operands of +.
- // Note that gtGetOp1 will return op1 to be the lhs; in the formulation of ssa, we have
- // a side table for defs and the lhs of a += is considered to be a use for SSA numbering.
- return ComputeRangeForBinOp(asgBlock, asg, monotonic DEBUGARG(indent));
-#endif
-
default:
-#ifndef LEGACY_BACKEND
noway_assert(false);
-#endif
// All other 'asg->OperGet()' kinds, return Limit::keUnknown
break;
}
@@ -1046,16 +1021,8 @@ bool RangeCheck::DoesVarDefOverflow(GenTreeLclVarCommon* lcl)
case GT_ASG:
return DoesOverflow(asgBlock, asg->gtGetOp2());
-#ifdef LEGACY_BACKEND
- case GT_ASG_ADD:
- // For GT_ASG_ADD, op2 is use, op1 is also use since we side table for defs in useasg case.
- return DoesBinOpOverflow(asgBlock, asg);
-#endif
-
default:
-#ifndef LEGACY_BACKEND
noway_assert(false);
-#endif
// All other 'asg->OperGet()' kinds, conservatively return true
break;
}