Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 611e3df

Browse files
Merge pull request #17083 from BruceForstall/RemoveArmDeadCode
Remove arm32/arm64 dead code
2 parents c4a86fb + 6f146a4 commit 611e3df

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/jit/lowerarmarch.cpp

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,15 @@ bool Lowering::IsCallTargetInRange(void* addr)
6363
// Return Value:
6464
// True if the immediate can be folded into an instruction,
6565
// for example small enough and non-relocatable.
66+
//
67+
// TODO-CQ: we can contain a floating point 0.0 constant in a compare instruction
68+
// (vcmp on arm, fcmp on arm64).
69+
//
6670
bool Lowering::IsContainableImmed(GenTree* parentNode, GenTree* childNode)
6771
{
6872
if (varTypeIsFloating(parentNode->TypeGet()))
6973
{
70-
// We can contain a floating point 0.0 constant in a compare instruction
71-
switch (parentNode->OperGet())
72-
{
73-
default:
74-
return false;
75-
76-
case GT_EQ:
77-
case GT_NE:
78-
case GT_LT:
79-
case GT_LE:
80-
case GT_GE:
81-
case GT_GT:
82-
if (childNode->IsIntegralConst(0))
83-
{
84-
// TODO-ARM-Cleanup: not tested yet.
85-
NYI_ARM("ARM IsContainableImmed for floating point type");
86-
87-
return true;
88-
}
89-
break;
90-
}
74+
return false;
9175
}
9276
else
9377
{

0 commit comments

Comments
 (0)