Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8257166: [lworld] CCP fails to optimize FlatArrayCheckNode #282

wants to merge 1 commit into from
Changes from all commits
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1300,11 +1300,13 @@ const Type* FlatArrayCheckNode::Value(PhaseGVN* phase) const {
for (uint i = Array; i < req(); ++i) {
Node* array = in(i);
if (!array->is_top()) {
const TypeAryPtr* t = phase->type(array)->isa_aryptr();
if (t != NULL && t->is_flat()) {
const Type* t = phase->type(array);
if (t == Type::TOP) {
return Type::TOP;
} else if (t->is_aryptr()->is_flat()) {
// One of the input arrays is flat, check always passes
return TypeInt::CC_EQ;
} else if (t == NULL || !t->is_not_flat()) {
} else if (!t->is_aryptr()->is_not_flat()) {
// One of the input arrays might be flat
all_not_flat = false;