changeset 6416:3e1b9ea326fa

8042052: assert(t != NULL) failed: must set before get Summary: Added missing call to _gvn.transform to make sure the type of the PhiNode is recorded in the gvn. Reviewed-by: kvn Contributed-by: Tobias Hartmann <tobias.hartmann@oracle.com>
author anoll
date Mon, 05 May 2014 15:10:43 +0200
parents c41037fab04f
children 446bb44e5367 6786f914240e
files src/share/vm/opto/library_call.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp	Fri May 02 19:10:24 2014 -0700
+++ b/src/share/vm/opto/library_call.cpp	Mon May 05 15:10:43 2014 +0200
@@ -1733,7 +1733,7 @@
       result_region->init_req(2, control());
       result_val->init_req(2, value);
       set_control(_gvn.transform(result_region));
-      return result_val;
+      return _gvn.transform(result_val);
     } else {
       return result;
     }
@@ -1928,7 +1928,7 @@
   // control from finish_pow_exp is now input to the region node
   region_node->set_req(2, control());
   // the result from finish_pow_exp is now input to the phi node
-  phi_node->init_req(2, _gvn.transform(result));
+  phi_node->init_req(2, result);
   set_control(_gvn.transform(region_node));
   record_for_igvn(region_node);
   set_result(_gvn.transform(phi_node));