Skip to content

Commit

Permalink
8293319: [C2 cleanup] Remove unused other_path arg in Parse::adjust_m…
Browse files Browse the repository at this point in the history
…ap_after_if

Reviewed-by: kvn
  • Loading branch information
DamonFool committed Sep 2, 2022
1 parent 5757e21 commit e1e6732
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/hotspot/share/opto/parse.hpp
@@ -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
Expand Down Expand Up @@ -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);
Expand Down
13 changes: 5 additions & 8 deletions src/hotspot/share/opto/parse2.cpp
Expand Up @@ -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);
}
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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;
Expand Down

1 comment on commit e1e6732

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.