Update the comment.
authorSergey Andreenko <seandree@microsoft.com>
Wed, 10 Apr 2019 19:29:46 +0000 (12:29 -0700)
committerSergey Andreenko <seandree@microsoft.com>
Wed, 10 Apr 2019 19:29:46 +0000 (12:29 -0700)
src/jit/assertionprop.cpp

index 85df205..1b48491 100644 (file)
@@ -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;