Skip to content

Commit

Permalink
8256329: [lworld] C2 compilation fails with assert(>is_flat() && >is_…
Browse files Browse the repository at this point in the history
…not_flat()) failed: Should have been optimized out
  • Loading branch information
TobiHartmann committed Nov 13, 2020
1 parent 74e40a5 commit d8ca5aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/opto/graphKit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit d8ca5aa

Please sign in to comment.