src/share/vm/opto/node.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/opto/node.cpp
src/share/vm/opto/node.cpp
Print this page
rev 7884 : 8073480: C2 should optimize explicit range checks
Summary: explicit range checks should be recognized by C2
Reviewed-by:
*** 2067,2077 ****
}
//--------------------------unique_ctrl_out------------------------------
// Return the unique control out if only one. Null if none or more than one.
! Node* Node::unique_ctrl_out() {
Node* found = NULL;
for (uint i = 0; i < outcnt(); i++) {
Node* use = raw_out(i);
if (use->is_CFG() && use != this) {
if (found != NULL) return NULL;
--- 2067,2077 ----
}
//--------------------------unique_ctrl_out------------------------------
// Return the unique control out if only one. Null if none or more than one.
! Node* Node::unique_ctrl_out() const {
Node* found = NULL;
for (uint i = 0; i < outcnt(); i++) {
Node* use = raw_out(i);
if (use->is_CFG() && use != this) {
if (found != NULL) return NULL;
src/share/vm/opto/node.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File