--- a/src/hotspot/share/opto/loopPredicate.cpp Wed Sep 25 21:26:38 2019 -0700
+++ b/src/hotspot/share/opto/loopPredicate.cpp Thu Sep 26 09:16:08 2019 +0200
@@ -1381,7 +1381,6 @@
} // end while
}
- Node_List if_proj_list_freq(area);
if (follow_branches) {
PathFrequency pf(loop->_head, this);
@@ -1399,6 +1398,7 @@
// And look into all branches
Node_Stack stack(0);
VectorSet seen(Thread::current()->resource_area());
+ Node_List if_proj_list_freq(area);
while (regions.size() > 0) {
Node* c = regions.pop();
loop_predication_follow_branches(c, loop, loop_trip_cnt, pf, stack, seen, if_proj_list_freq);