From 2d839a9f3e7e5d61a31ccb67aefe37fa75100e54 Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Tue, 3 Jan 2017 14:34:54 -0800 Subject: [PATCH] Add a comment per code review. Commit migrated from https://github.com/dotnet/coreclr/commit/ac913bc473b6b0ce2665afeefc5533b3d08cff74 --- src/coreclr/src/jit/morph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/src/jit/morph.cpp b/src/coreclr/src/jit/morph.cpp index e50a312..f29b48f 100644 --- a/src/coreclr/src/jit/morph.cpp +++ b/src/coreclr/src/jit/morph.cpp @@ -10998,6 +10998,8 @@ GenTreePtr Compiler::fgMorphSmpOp(GenTreePtr tree, MorphAddrContext* mac) // // a % b = a - (a / b) * b; // + // NOTE: we should never need to perform this transformation when remorphing, since global morphing + // should already have done so and we do not introduce new modulus nodes in later phases. assert(!optValnumCSE_phase); tree = fgMorphModToSubMulDiv(tree->AsOp()); op1 = tree->gtOp.gtOp1; -- 2.7.4