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

Commit 59c6500

Browse files
Merge pull request #6106 from mikedn/modopt-feedback
Address div/mod CR feedback
2 parents 5e0cb3a + 56c4258 commit 59c6500

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/jit/codegenarm64.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,8 +2460,6 @@ CodeGen::genCodeForTreeNode(GenTreePtr treeNode)
24602460
GenTreePtr divisorOp = treeNode->gtGetOp2();
24612461
emitAttr size = EA_ATTR(genTypeSize(genActualType(treeNode->TypeGet())));
24622462

2463-
// TODO-ARM64-CQ: Optimize a divide by power of 2 as we do for AMD64
2464-
24652463
if (divisorOp->IsIntegralConst(0))
24662464
{
24672465
// We unconditionally throw a divide by zero exception

src/jit/lower.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4030,6 +4030,7 @@ void Lowering::LowerUnsignedDivOrMod(GenTree* tree)
40304030
//
40314031
// Arguments:
40324032
// pTree: pointer to the parent node's link to the node we care about
4033+
// data: fgWalkData which is used to get info about parents and fixup call args
40334034

40344035
void Lowering::LowerSignedDivOrMod(GenTreePtr* ppTree, Compiler::fgWalkData* data)
40354036
{

0 commit comments

Comments
 (0)