annotate src/share/vm/opto/loopUnswitch.cpp @ 63:eac007780a58

6671807: (Escape Analysis) Add new ideal node to represent the state of a scalarized object at a safepoint Summary: Values of non-static fields of a scalarized object should be saved in debug info to reallocate the object during deoptimization. Reviewed-by: never
author kvn
date Thu, 13 Mar 2008 16:06:34 -0700
parents a61af66fc99e
children a761c2d3b76a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
2 * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
a61af66fc99e Initial load
duke
parents:
diff changeset
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
20 * CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
21 * have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 #include "incls/_precompiled.incl"
a61af66fc99e Initial load
duke
parents:
diff changeset
26 #include "incls/_loopUnswitch.cpp.incl"
a61af66fc99e Initial load
duke
parents:
diff changeset
27
a61af66fc99e Initial load
duke
parents:
diff changeset
28 //================= Loop Unswitching =====================
a61af66fc99e Initial load
duke
parents:
diff changeset
29 //
a61af66fc99e Initial load
duke
parents:
diff changeset
30 // orig: transformed:
a61af66fc99e Initial load
duke
parents:
diff changeset
31 // if (invariant-test) then
a61af66fc99e Initial load
duke
parents:
diff changeset
32 // loop loop
a61af66fc99e Initial load
duke
parents:
diff changeset
33 // stmt1 stmt1
a61af66fc99e Initial load
duke
parents:
diff changeset
34 // if (invariant-test) then stmt2
a61af66fc99e Initial load
duke
parents:
diff changeset
35 // stmt2 stmt4
a61af66fc99e Initial load
duke
parents:
diff changeset
36 // else endloop
a61af66fc99e Initial load
duke
parents:
diff changeset
37 // stmt3 else
a61af66fc99e Initial load
duke
parents:
diff changeset
38 // endif loop [clone]
a61af66fc99e Initial load
duke
parents:
diff changeset
39 // stmt4 stmt1 [clone]
a61af66fc99e Initial load
duke
parents:
diff changeset
40 // endloop stmt3
a61af66fc99e Initial load
duke
parents:
diff changeset
41 // stmt4 [clone]
a61af66fc99e Initial load
duke
parents:
diff changeset
42 // endloop
a61af66fc99e Initial load
duke
parents:
diff changeset
43 // endif
a61af66fc99e Initial load
duke
parents:
diff changeset
44 //
a61af66fc99e Initial load
duke
parents:
diff changeset
45 // Note: the "else" clause may be empty
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 //------------------------------policy_unswitching-----------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
48 // Return TRUE or FALSE if the loop should be unswitched
a61af66fc99e Initial load
duke
parents:
diff changeset
49 // (ie. clone loop with an invariant test that does not exit the loop)
a61af66fc99e Initial load
duke
parents:
diff changeset
50 bool IdealLoopTree::policy_unswitching( PhaseIdealLoop *phase ) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
51 if( !LoopUnswitching ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
52 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
53 }
a61af66fc99e Initial load
duke
parents:
diff changeset
54 uint nodes_left = MaxNodeLimit - phase->C->unique();
a61af66fc99e Initial load
duke
parents:
diff changeset
55 if (2 * _body.size() > nodes_left) {
a61af66fc99e Initial load
duke
parents:
diff changeset
56 return false; // Too speculative if running low on nodes.
a61af66fc99e Initial load
duke
parents:
diff changeset
57 }
a61af66fc99e Initial load
duke
parents:
diff changeset
58 LoopNode* head = _head->as_Loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
59 if (head->unswitch_count() + 1 > head->unswitch_max()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
60 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
61 }
a61af66fc99e Initial load
duke
parents:
diff changeset
62 return phase->find_unswitching_candidate(this) != NULL;
a61af66fc99e Initial load
duke
parents:
diff changeset
63 }
a61af66fc99e Initial load
duke
parents:
diff changeset
64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 //------------------------------find_unswitching_candidate-----------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
66 // Find candidate "if" for unswitching
a61af66fc99e Initial load
duke
parents:
diff changeset
67 IfNode* PhaseIdealLoop::find_unswitching_candidate(const IdealLoopTree *loop) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 // Find first invariant test that doesn't exit the loop
a61af66fc99e Initial load
duke
parents:
diff changeset
70 LoopNode *head = loop->_head->as_Loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
71 IfNode* unswitch_iff = NULL;
a61af66fc99e Initial load
duke
parents:
diff changeset
72 Node* n = head->in(LoopNode::LoopBackControl);
a61af66fc99e Initial load
duke
parents:
diff changeset
73 while (n != head) {
a61af66fc99e Initial load
duke
parents:
diff changeset
74 Node* n_dom = idom(n);
a61af66fc99e Initial load
duke
parents:
diff changeset
75 if (n->is_Region()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
76 if (n_dom->is_If()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
77 IfNode* iff = n_dom->as_If();
a61af66fc99e Initial load
duke
parents:
diff changeset
78 if (iff->in(1)->is_Bool()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
79 BoolNode* bol = iff->in(1)->as_Bool();
a61af66fc99e Initial load
duke
parents:
diff changeset
80 if (bol->in(1)->is_Cmp()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
81 // If condition is invariant and not a loop exit,
a61af66fc99e Initial load
duke
parents:
diff changeset
82 // then found reason to unswitch.
a61af66fc99e Initial load
duke
parents:
diff changeset
83 if (loop->is_invariant(bol) && !loop->is_loop_exit(iff)) {
a61af66fc99e Initial load
duke
parents:
diff changeset
84 unswitch_iff = iff;
a61af66fc99e Initial load
duke
parents:
diff changeset
85 }
a61af66fc99e Initial load
duke
parents:
diff changeset
86 }
a61af66fc99e Initial load
duke
parents:
diff changeset
87 }
a61af66fc99e Initial load
duke
parents:
diff changeset
88 }
a61af66fc99e Initial load
duke
parents:
diff changeset
89 }
a61af66fc99e Initial load
duke
parents:
diff changeset
90 n = n_dom;
a61af66fc99e Initial load
duke
parents:
diff changeset
91 }
a61af66fc99e Initial load
duke
parents:
diff changeset
92 return unswitch_iff;
a61af66fc99e Initial load
duke
parents:
diff changeset
93 }
a61af66fc99e Initial load
duke
parents:
diff changeset
94
a61af66fc99e Initial load
duke
parents:
diff changeset
95 //------------------------------do_unswitching-----------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
96 // Clone loop with an invariant test (that does not exit) and
a61af66fc99e Initial load
duke
parents:
diff changeset
97 // insert a clone of the test that selects which version to
a61af66fc99e Initial load
duke
parents:
diff changeset
98 // execute.
a61af66fc99e Initial load
duke
parents:
diff changeset
99 void PhaseIdealLoop::do_unswitching (IdealLoopTree *loop, Node_List &old_new) {
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 // Find first invariant test that doesn't exit the loop
a61af66fc99e Initial load
duke
parents:
diff changeset
102 LoopNode *head = loop->_head->as_Loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 IfNode* unswitch_iff = find_unswitching_candidate((const IdealLoopTree *)loop);
a61af66fc99e Initial load
duke
parents:
diff changeset
105 assert(unswitch_iff != NULL, "should be at least one");
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 // Need to revert back to normal loop
a61af66fc99e Initial load
duke
parents:
diff changeset
108 if (head->is_CountedLoop() && !head->as_CountedLoop()->is_normal_loop()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
109 head->as_CountedLoop()->set_normal_loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
110 }
a61af66fc99e Initial load
duke
parents:
diff changeset
111
a61af66fc99e Initial load
duke
parents:
diff changeset
112 ProjNode* proj_true = create_slow_version_of_loop(loop, old_new);
a61af66fc99e Initial load
duke
parents:
diff changeset
113
a61af66fc99e Initial load
duke
parents:
diff changeset
114 assert(proj_true->is_IfTrue() && proj_true->unique_ctrl_out() == head, "by construction");
a61af66fc99e Initial load
duke
parents:
diff changeset
115
a61af66fc99e Initial load
duke
parents:
diff changeset
116 // Increment unswitch count
a61af66fc99e Initial load
duke
parents:
diff changeset
117 LoopNode* head_clone = old_new[head->_idx]->as_Loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
118 int nct = head->unswitch_count() + 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
119 head->set_unswitch_count(nct);
a61af66fc99e Initial load
duke
parents:
diff changeset
120 head_clone->set_unswitch_count(nct);
a61af66fc99e Initial load
duke
parents:
diff changeset
121
a61af66fc99e Initial load
duke
parents:
diff changeset
122 // Add test to new "if" outside of loop
a61af66fc99e Initial load
duke
parents:
diff changeset
123 IfNode* invar_iff = proj_true->in(0)->as_If();
a61af66fc99e Initial load
duke
parents:
diff changeset
124 Node* invar_iff_c = invar_iff->in(0);
a61af66fc99e Initial load
duke
parents:
diff changeset
125 BoolNode* bol = unswitch_iff->in(1)->as_Bool();
a61af66fc99e Initial load
duke
parents:
diff changeset
126 invar_iff->set_req(1, bol);
a61af66fc99e Initial load
duke
parents:
diff changeset
127 invar_iff->_prob = unswitch_iff->_prob;
a61af66fc99e Initial load
duke
parents:
diff changeset
128
a61af66fc99e Initial load
duke
parents:
diff changeset
129 ProjNode* proj_false = invar_iff->proj_out(0)->as_Proj();
a61af66fc99e Initial load
duke
parents:
diff changeset
130
a61af66fc99e Initial load
duke
parents:
diff changeset
131 // Hoist invariant casts out of each loop to the appropiate
a61af66fc99e Initial load
duke
parents:
diff changeset
132 // control projection.
a61af66fc99e Initial load
duke
parents:
diff changeset
133
a61af66fc99e Initial load
duke
parents:
diff changeset
134 Node_List worklist;
a61af66fc99e Initial load
duke
parents:
diff changeset
135
a61af66fc99e Initial load
duke
parents:
diff changeset
136 for (DUIterator_Fast imax, i = unswitch_iff->fast_outs(imax); i < imax; i++) {
a61af66fc99e Initial load
duke
parents:
diff changeset
137 ProjNode* proj= unswitch_iff->fast_out(i)->as_Proj();
a61af66fc99e Initial load
duke
parents:
diff changeset
138 // Copy to a worklist for easier manipulation
a61af66fc99e Initial load
duke
parents:
diff changeset
139 for (DUIterator_Fast jmax, j = proj->fast_outs(jmax); j < jmax; j++) {
a61af66fc99e Initial load
duke
parents:
diff changeset
140 Node* use = proj->fast_out(j);
a61af66fc99e Initial load
duke
parents:
diff changeset
141 if (use->Opcode() == Op_CheckCastPP && loop->is_invariant(use->in(1))) {
a61af66fc99e Initial load
duke
parents:
diff changeset
142 worklist.push(use);
a61af66fc99e Initial load
duke
parents:
diff changeset
143 }
a61af66fc99e Initial load
duke
parents:
diff changeset
144 }
a61af66fc99e Initial load
duke
parents:
diff changeset
145 ProjNode* invar_proj = invar_iff->proj_out(proj->_con)->as_Proj();
a61af66fc99e Initial load
duke
parents:
diff changeset
146 while (worklist.size() > 0) {
a61af66fc99e Initial load
duke
parents:
diff changeset
147 Node* use = worklist.pop();
a61af66fc99e Initial load
duke
parents:
diff changeset
148 Node* nuse = use->clone();
a61af66fc99e Initial load
duke
parents:
diff changeset
149 nuse->set_req(0, invar_proj);
a61af66fc99e Initial load
duke
parents:
diff changeset
150 _igvn.hash_delete(use);
a61af66fc99e Initial load
duke
parents:
diff changeset
151 use->set_req(1, nuse);
a61af66fc99e Initial load
duke
parents:
diff changeset
152 _igvn._worklist.push(use);
a61af66fc99e Initial load
duke
parents:
diff changeset
153 register_new_node(nuse, invar_proj);
a61af66fc99e Initial load
duke
parents:
diff changeset
154 // Same for the clone
a61af66fc99e Initial load
duke
parents:
diff changeset
155 Node* use_clone = old_new[use->_idx];
a61af66fc99e Initial load
duke
parents:
diff changeset
156 _igvn.hash_delete(use_clone);
a61af66fc99e Initial load
duke
parents:
diff changeset
157 use_clone->set_req(1, nuse);
a61af66fc99e Initial load
duke
parents:
diff changeset
158 _igvn._worklist.push(use_clone);
a61af66fc99e Initial load
duke
parents:
diff changeset
159 }
a61af66fc99e Initial load
duke
parents:
diff changeset
160 }
a61af66fc99e Initial load
duke
parents:
diff changeset
161
a61af66fc99e Initial load
duke
parents:
diff changeset
162 // Hardwire the control paths in the loops into if(true) and if(false)
a61af66fc99e Initial load
duke
parents:
diff changeset
163 _igvn.hash_delete(unswitch_iff);
a61af66fc99e Initial load
duke
parents:
diff changeset
164 short_circuit_if(unswitch_iff, proj_true);
a61af66fc99e Initial load
duke
parents:
diff changeset
165 _igvn._worklist.push(unswitch_iff);
a61af66fc99e Initial load
duke
parents:
diff changeset
166
a61af66fc99e Initial load
duke
parents:
diff changeset
167 IfNode* unswitch_iff_clone = old_new[unswitch_iff->_idx]->as_If();
a61af66fc99e Initial load
duke
parents:
diff changeset
168 _igvn.hash_delete(unswitch_iff_clone);
a61af66fc99e Initial load
duke
parents:
diff changeset
169 short_circuit_if(unswitch_iff_clone, proj_false);
a61af66fc99e Initial load
duke
parents:
diff changeset
170 _igvn._worklist.push(unswitch_iff_clone);
a61af66fc99e Initial load
duke
parents:
diff changeset
171
a61af66fc99e Initial load
duke
parents:
diff changeset
172 // Reoptimize loops
a61af66fc99e Initial load
duke
parents:
diff changeset
173 loop->record_for_igvn();
a61af66fc99e Initial load
duke
parents:
diff changeset
174 for(int i = loop->_body.size() - 1; i >= 0 ; i--) {
a61af66fc99e Initial load
duke
parents:
diff changeset
175 Node *n = loop->_body[i];
a61af66fc99e Initial load
duke
parents:
diff changeset
176 Node *n_clone = old_new[n->_idx];
a61af66fc99e Initial load
duke
parents:
diff changeset
177 _igvn._worklist.push(n_clone);
a61af66fc99e Initial load
duke
parents:
diff changeset
178 }
a61af66fc99e Initial load
duke
parents:
diff changeset
179
a61af66fc99e Initial load
duke
parents:
diff changeset
180 #ifndef PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
181 if (TraceLoopUnswitching) {
a61af66fc99e Initial load
duke
parents:
diff changeset
182 tty->print_cr("Loop unswitching orig: %d @ %d new: %d @ %d",
a61af66fc99e Initial load
duke
parents:
diff changeset
183 head->_idx, unswitch_iff->_idx,
a61af66fc99e Initial load
duke
parents:
diff changeset
184 old_new[head->_idx]->_idx, unswitch_iff_clone->_idx);
a61af66fc99e Initial load
duke
parents:
diff changeset
185 }
a61af66fc99e Initial load
duke
parents:
diff changeset
186 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
187
a61af66fc99e Initial load
duke
parents:
diff changeset
188 C->set_major_progress();
a61af66fc99e Initial load
duke
parents:
diff changeset
189 }
a61af66fc99e Initial load
duke
parents:
diff changeset
190
a61af66fc99e Initial load
duke
parents:
diff changeset
191 //-------------------------create_slow_version_of_loop------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
192 // Create a slow version of the loop by cloning the loop
a61af66fc99e Initial load
duke
parents:
diff changeset
193 // and inserting an if to select fast-slow versions.
a61af66fc99e Initial load
duke
parents:
diff changeset
194 // Return control projection of the entry to the fast version.
a61af66fc99e Initial load
duke
parents:
diff changeset
195 ProjNode* PhaseIdealLoop::create_slow_version_of_loop(IdealLoopTree *loop,
a61af66fc99e Initial load
duke
parents:
diff changeset
196 Node_List &old_new) {
a61af66fc99e Initial load
duke
parents:
diff changeset
197 LoopNode* head = loop->_head->as_Loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
198 Node* entry = head->in(LoopNode::EntryControl);
a61af66fc99e Initial load
duke
parents:
diff changeset
199 _igvn.hash_delete(entry);
a61af66fc99e Initial load
duke
parents:
diff changeset
200 _igvn._worklist.push(entry);
a61af66fc99e Initial load
duke
parents:
diff changeset
201 IdealLoopTree* outer_loop = loop->_parent;
a61af66fc99e Initial load
duke
parents:
diff changeset
202
a61af66fc99e Initial load
duke
parents:
diff changeset
203 Node *cont = _igvn.intcon(1);
a61af66fc99e Initial load
duke
parents:
diff changeset
204 set_ctrl(cont, C->root());
a61af66fc99e Initial load
duke
parents:
diff changeset
205 Node* opq = new (C, 2) Opaque1Node(cont);
a61af66fc99e Initial load
duke
parents:
diff changeset
206 register_node(opq, outer_loop, entry, dom_depth(entry));
a61af66fc99e Initial load
duke
parents:
diff changeset
207 Node *bol = new (C, 2) Conv2BNode(opq);
a61af66fc99e Initial load
duke
parents:
diff changeset
208 register_node(bol, outer_loop, entry, dom_depth(entry));
a61af66fc99e Initial load
duke
parents:
diff changeset
209 IfNode* iff = new (C, 2) IfNode(entry, bol, PROB_MAX, COUNT_UNKNOWN);
a61af66fc99e Initial load
duke
parents:
diff changeset
210 register_node(iff, outer_loop, entry, dom_depth(entry));
a61af66fc99e Initial load
duke
parents:
diff changeset
211 ProjNode* iffast = new (C, 1) IfTrueNode(iff);
a61af66fc99e Initial load
duke
parents:
diff changeset
212 register_node(iffast, outer_loop, iff, dom_depth(iff));
a61af66fc99e Initial load
duke
parents:
diff changeset
213 ProjNode* ifslow = new (C, 1) IfFalseNode(iff);
a61af66fc99e Initial load
duke
parents:
diff changeset
214 register_node(ifslow, outer_loop, iff, dom_depth(iff));
a61af66fc99e Initial load
duke
parents:
diff changeset
215
a61af66fc99e Initial load
duke
parents:
diff changeset
216 // Clone the loop body. The clone becomes the fast loop. The
a61af66fc99e Initial load
duke
parents:
diff changeset
217 // original pre-header will (illegally) have 2 control users (old & new loops).
a61af66fc99e Initial load
duke
parents:
diff changeset
218 clone_loop(loop, old_new, dom_depth(head), iff);
a61af66fc99e Initial load
duke
parents:
diff changeset
219 assert(old_new[head->_idx]->is_Loop(), "" );
a61af66fc99e Initial load
duke
parents:
diff changeset
220
a61af66fc99e Initial load
duke
parents:
diff changeset
221 // Fast (true) control
a61af66fc99e Initial load
duke
parents:
diff changeset
222 _igvn.hash_delete(head);
a61af66fc99e Initial load
duke
parents:
diff changeset
223 head->set_req(LoopNode::EntryControl, iffast);
a61af66fc99e Initial load
duke
parents:
diff changeset
224 set_idom(head, iffast, dom_depth(head));
a61af66fc99e Initial load
duke
parents:
diff changeset
225 _igvn._worklist.push(head);
a61af66fc99e Initial load
duke
parents:
diff changeset
226
a61af66fc99e Initial load
duke
parents:
diff changeset
227 // Slow (false) control
a61af66fc99e Initial load
duke
parents:
diff changeset
228 LoopNode* slow_head = old_new[head->_idx]->as_Loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
229 _igvn.hash_delete(slow_head);
a61af66fc99e Initial load
duke
parents:
diff changeset
230 slow_head->set_req(LoopNode::EntryControl, ifslow);
a61af66fc99e Initial load
duke
parents:
diff changeset
231 set_idom(slow_head, ifslow, dom_depth(slow_head));
a61af66fc99e Initial load
duke
parents:
diff changeset
232 _igvn._worklist.push(slow_head);
a61af66fc99e Initial load
duke
parents:
diff changeset
233
a61af66fc99e Initial load
duke
parents:
diff changeset
234 recompute_dom_depth();
a61af66fc99e Initial load
duke
parents:
diff changeset
235
a61af66fc99e Initial load
duke
parents:
diff changeset
236 return iffast;
a61af66fc99e Initial load
duke
parents:
diff changeset
237 }