Skip to content

Commit 1c3bb00

Browse files
committed
8256329: [lworld] C2 compilation fails with assert(!t->is_flat() && !t->is_not_flat()) failed: Should have been optimized out
1 parent 74e40a5 commit 1c3bb00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hotspot/share/opto/graphKit.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3571,6 +3571,7 @@ Node* GraphKit::flat_array_test(Node* ary, bool flat) {
35713571
// check is moved out of loops (mainly to enable loop unswitching).
35723572
Node* mem = UseArrayMarkWordCheck ? memory(Compile::AliasIdxRaw) : immutable_memory();
35733573
Node* cmp = _gvn.transform(new FlatArrayCheckNode(C, mem, ary));
3574+
record_for_igvn(cmp); // Give it a chance to be optimized out by IGVN
35743575
return _gvn.transform(new BoolNode(cmp, flat ? BoolTest::eq : BoolTest::ne));
35753576
}
35763577

0 commit comments

Comments
 (0)