hotspot/src/share/vm/opto/loopopts.cpp
changeset 25913 81dbc151e91c
parent 24954 9bd47e3d7c69
child 25930 eae8b7490d2c
--- a/hotspot/src/share/vm/opto/loopopts.cpp	Fri Jul 18 09:04:01 2014 +0200
+++ b/hotspot/src/share/vm/opto/loopopts.cpp	Fri Jul 25 10:06:17 2014 +0200
@@ -2574,7 +2574,7 @@
   new_head->set_unswitch_count(head->unswitch_count()); // Preserve
   _igvn.register_new_node_with_optimizer(new_head);
   assert(first_not_peeled->in(0) == last_peel, "last_peel <- first_not_peeled");
-  first_not_peeled->set_req(0, new_head);
+  _igvn.replace_input_of(first_not_peeled, 0, new_head);
   set_loop(new_head, loop);
   loop->_body.push(new_head);
   not_peel.set(new_head->_idx);