mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8267424: CTW: C1 fails with "State must not be null"
Reviewed-by: kvn, roland
This commit is contained in:
parent
e11f70aeb6
commit
0a6c7d8a4b
1 changed files with 4 additions and 2 deletions
|
@ -3047,9 +3047,11 @@ BlockBegin* GraphBuilder::setup_start_block(int osr_bci, BlockBegin* std_entry,
|
|||
// necesary if std_entry is also a backward branch target because
|
||||
// then phi functions may be necessary in the header block. It's
|
||||
// also necessary when profiling so that there's a single block that
|
||||
// can increment the interpreter_invocation_count.
|
||||
// can increment the the counters.
|
||||
// In addition, with range check elimination, we may need a valid block
|
||||
// that dominates all the rest to insert range predicates.
|
||||
BlockBegin* new_header_block;
|
||||
if (std_entry->number_of_preds() > 0 || count_invocations() || count_backedges()) {
|
||||
if (std_entry->number_of_preds() > 0 || count_invocations() || count_backedges() || RangeCheckElimination) {
|
||||
new_header_block = header_block(std_entry, BlockBegin::std_entry_flag, state);
|
||||
} else {
|
||||
new_header_block = std_entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue