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

8256329: [lworld] C2 compilation fails with assert(!t->is_flat() && !t->is_not_flat()) failed: Should have been optimized out #258

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
@@ -3571,6 +3571,7 @@ Node* GraphKit::flat_array_test(Node* ary, bool flat) {
// check is moved out of loops (mainly to enable loop unswitching).
Node* mem = UseArrayMarkWordCheck ? memory(Compile::AliasIdxRaw) : immutable_memory();
Node* cmp = _gvn.transform(new FlatArrayCheckNode(C, mem, ary));
record_for_igvn(cmp); // Give it a chance to be optimized out by IGVN
return _gvn.transform(new BoolNode(cmp, flat ? BoolTest::eq : BoolTest::ne));