< prev index next >
src/hotspot/share/opto/cfgnode.cpp
Print this page
@@ -1078,13 +1078,13 @@
// init < limit if (stride > 0) so we can't deduce bounds
// for the iv from the exit condition.
if (bt != BoolTest::ne) {
if (stride_t->_hi < 0) { // Down-counter loop
swap(lo, hi);
- return TypeInt::make(MIN2(lo->_lo, hi->_lo) , hi->_hi, 3);
+ return TypeInt::make(MIN2(lo->_lo, hi->_lo) , hi->_hi, 3)->filter_speculative(_type);
} else if (stride_t->_lo >= 0) {
- return TypeInt::make(lo->_lo, MAX2(lo->_hi, hi->_hi), 3);
+ return TypeInt::make(lo->_lo, MAX2(lo->_hi, hi->_hi), 3)->filter_speculative(_type);
}
}
}
}
} else if (l->in(LoopNode::LoopBackControl) != NULL &&
< prev index next >