projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b32c8d
)
Add a comment per code review.
author
Pat Gavlin
<pagavlin@microsoft.com>
Tue, 3 Jan 2017 22:34:54 +0000
(14:34 -0800)
committer
Pat Gavlin
<pagavlin@microsoft.com>
Tue, 3 Jan 2017 22:34:54 +0000
(14:34 -0800)
src/jit/morph.cpp
patch
|
blob
|
history
diff --git
a/src/jit/morph.cpp
b/src/jit/morph.cpp
index
e50a312
..
f29b48f
100644
(file)
--- a/
src/jit/morph.cpp
+++ b/
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;