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:
0ee00c3
)
Update the comment.
author
Sergey Andreenko
<seandree@microsoft.com>
Wed, 10 Apr 2019 19:29:46 +0000
(12:29 -0700)
committer
Sergey Andreenko
<seandree@microsoft.com>
Wed, 10 Apr 2019 19:29:46 +0000
(12:29 -0700)
src/jit/assertionprop.cpp
patch
|
blob
|
history
diff --git
a/src/jit/assertionprop.cpp
b/src/jit/assertionprop.cpp
index
85df205
..
1b48491
100644
(file)
--- a/
src/jit/assertionprop.cpp
+++ b/
src/jit/assertionprop.cpp
@@
-2485,14
+2485,11
@@
GenTree* Compiler::optVNConstantPropOnTree(BasicBlock* block, GenTree* tree)
case TYP_REF:
{
assert(vnStore->ConstantValue<size_t>(vnCns) == 0);
+ // Support onle ref(ref(0)), do not support other forms (e.g byref(ref(0)).
if (tree->TypeGet() == TYP_REF)
{
conValTree = gtNewIconNode(0, TYP_REF);
}
- else
- {
- // Do not support such optimization (e.g byref(ref(0)).
- }
}
break;