Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
Browse files
8257561: Some code is not vectorized after 8251925 and 8250607
Reviewed-by: chagedorn, vlivanov, thartmann
  • Loading branch information
Vladimir Kozlov committed Dec 3, 2020
1 parent 70517c8 commit 6c9482eef5710e7e04279a6172d18e30b80502fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
@@ -1105,11 +1105,9 @@ const Type* PhiNode::Value(PhaseGVN* phase) const {
if (bt != BoolTest::ne) {
if (stride_t->hi_as_long() < 0) { // Down-counter loop
swap(lo, hi);
return TypeInteger::make(MIN2(lo->lo_as_long(), hi->lo_as_long()), hi->hi_as_long(), 3,
l->bt())->filter_speculative(_type);
return TypeInteger::make(MIN2(lo->lo_as_long(), hi->lo_as_long()), hi->hi_as_long(), 3, l->bt());
} else if (stride_t->lo_as_long() >= 0) {
return TypeInteger::make(lo->lo_as_long(), MAX2(lo->hi_as_long(), hi->hi_as_long()), 3,
l->bt())->filter_speculative(_type);
return TypeInteger::make(lo->lo_as_long(), MAX2(lo->hi_as_long(), hi->hi_as_long()), 3, l->bt());
}
}
}
@@ -3995,16 +3995,14 @@ bool SWPointer::offset_plus_k(Node* n, bool negate) {
assert(!is_main_loop_member(n), "sanity");
n = n->in(1);
}

// Check if 'n' can really be used as invariant (not in main loop and dominating the pre loop).
if (invariant(n)) {
_negate_invar = negate;
_invar = n;
NOT_PRODUCT(_tracer.offset_plus_k_10(n, _invar, _negate_invar, _offset);)
return true;
}
}
return false;
// Check if 'n' can really be used as invariant (not in main loop and dominating the pre loop).
if (invariant(n)) {
_negate_invar = negate;
_invar = n;
NOT_PRODUCT(_tracer.offset_plus_k_10(n, _invar, _negate_invar, _offset);)
return true;
}
}

NOT_PRODUCT(_tracer.offset_plus_k_11(n);)

0 comments on commit 6c9482e

Please sign in to comment.