8293319: [C2 cleanup] Remove unused other_path arg in Parse::adjust_map_after_if
Reviewed-by: kvn
This commit is contained in:
parent
5757e2129e
commit
e1e67324c0
src/hotspot/share/opto
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -543,8 +543,7 @@ class Parse : public GraphKit {
|
||||
void do_ifnull(BoolTest::mask btest, Node* c);
|
||||
void do_if(BoolTest::mask btest, Node* c);
|
||||
int repush_if_args();
|
||||
void adjust_map_after_if(BoolTest::mask btest, Node* c, float prob,
|
||||
Block* path, Block* other_path);
|
||||
void adjust_map_after_if(BoolTest::mask btest, Node* c, float prob, Block* path);
|
||||
void sharpen_type_after_if(BoolTest::mask btest,
|
||||
Node* con, const Type* tcon,
|
||||
Node* val, const Type* tval);
|
||||
|
@ -1410,7 +1410,7 @@ void Parse::do_ifnull(BoolTest::mask btest, Node *c) {
|
||||
branch_block->next_path_num();
|
||||
}
|
||||
} else { // Path is live.
|
||||
adjust_map_after_if(btest, c, prob, branch_block, next_block);
|
||||
adjust_map_after_if(btest, c, prob, branch_block);
|
||||
if (!stopped()) {
|
||||
merge(target_bci);
|
||||
}
|
||||
@ -1428,8 +1428,7 @@ void Parse::do_ifnull(BoolTest::mask btest, Node *c) {
|
||||
next_block->next_path_num();
|
||||
}
|
||||
} else { // Path is live.
|
||||
adjust_map_after_if(BoolTest(btest).negate(), c, 1.0-prob,
|
||||
next_block, branch_block);
|
||||
adjust_map_after_if(BoolTest(btest).negate(), c, 1.0-prob, next_block);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1523,7 +1522,7 @@ void Parse::do_if(BoolTest::mask btest, Node* c) {
|
||||
branch_block->next_path_num();
|
||||
}
|
||||
} else {
|
||||
adjust_map_after_if(taken_btest, c, prob, branch_block, next_block);
|
||||
adjust_map_after_if(taken_btest, c, prob, branch_block);
|
||||
if (!stopped()) {
|
||||
merge(target_bci);
|
||||
}
|
||||
@ -1540,8 +1539,7 @@ void Parse::do_if(BoolTest::mask btest, Node* c) {
|
||||
next_block->next_path_num();
|
||||
}
|
||||
} else {
|
||||
adjust_map_after_if(untaken_btest, c, untaken_prob,
|
||||
next_block, branch_block);
|
||||
adjust_map_after_if(untaken_btest, c, untaken_prob, next_block);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1571,8 +1569,7 @@ void Parse::maybe_add_predicate_after_if(Block* path) {
|
||||
// branch, seeing how it constrains a tested value, and then
|
||||
// deciding if it's worth our while to encode this constraint
|
||||
// as graph nodes in the current abstract interpretation map.
|
||||
void Parse::adjust_map_after_if(BoolTest::mask btest, Node* c, float prob,
|
||||
Block* path, Block* other_path) {
|
||||
void Parse::adjust_map_after_if(BoolTest::mask btest, Node* c, float prob, Block* path) {
|
||||
if (!c->is_Cmp()) {
|
||||
maybe_add_predicate_after_if(path);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user