From: Mike Danes Date: Sun, 3 Jul 2016 16:46:15 +0000 (+0300) Subject: Address div/mod CR feedback X-Git-Tag: submit/tizen/20210909.063632~11030^2~9952^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5ab853a34ada768c43b6ef1d1c33cfc8b4fbeee;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Address div/mod CR feedback Commit migrated from https://github.com/dotnet/coreclr/commit/56c425835dcb35bbdaf1f7639a6580ea4a8215e9 --- diff --git a/src/coreclr/src/jit/codegenarm64.cpp b/src/coreclr/src/jit/codegenarm64.cpp index e02e922..2f8879a 100644 --- a/src/coreclr/src/jit/codegenarm64.cpp +++ b/src/coreclr/src/jit/codegenarm64.cpp @@ -2460,8 +2460,6 @@ CodeGen::genCodeForTreeNode(GenTreePtr treeNode) GenTreePtr divisorOp = treeNode->gtGetOp2(); emitAttr size = EA_ATTR(genTypeSize(genActualType(treeNode->TypeGet()))); - // TODO-ARM64-CQ: Optimize a divide by power of 2 as we do for AMD64 - if (divisorOp->IsIntegralConst(0)) { // We unconditionally throw a divide by zero exception diff --git a/src/coreclr/src/jit/lower.cpp b/src/coreclr/src/jit/lower.cpp index 26f3a53..e54130e 100755 --- a/src/coreclr/src/jit/lower.cpp +++ b/src/coreclr/src/jit/lower.cpp @@ -4030,6 +4030,7 @@ void Lowering::LowerUnsignedDivOrMod(GenTree* tree) // // Arguments: // pTree: pointer to the parent node's link to the node we care about +// data: fgWalkData which is used to get info about parents and fixup call args void Lowering::LowerSignedDivOrMod(GenTreePtr* ppTree, Compiler::fgWalkData* data) {