Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8250607: C2: Filter type in PhiNode::Value() for induction variables …
Browse files Browse the repository at this point in the history
…of trip-counted integer loops

Reviewed-by: chagedorn, thartmann
  • Loading branch information
rwestrel committed Nov 12, 2020
1 parent bd8693a commit 70c7b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/cfgnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,9 @@ const Type* PhiNode::Value(PhaseGVN* phase) const {
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);
}
}
}
Expand Down

0 comments on commit 70c7b1d

Please sign in to comment.