mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8042786: Proper fix for 8032566
Check for overflow cases in range checks and collapse it if we can. Reviewed-by: jrose, iveresov
This commit is contained in:
parent
a354960abb
commit
6bfc0288f3
7 changed files with 101 additions and 5 deletions
|
@ -673,7 +673,7 @@ const TypeInt* IfNode::filtered_int_type(PhaseGVN* gvn, Node *val, Node* if_proj
|
|||
// / Region
|
||||
//
|
||||
Node* IfNode::fold_compares(PhaseGVN* phase) {
|
||||
if (!phase->C->eliminate_boxing() || Opcode() != Op_If) return NULL;
|
||||
if (Opcode() != Op_If) return NULL;
|
||||
|
||||
Node* this_cmp = in(1)->in(1);
|
||||
if (this_cmp != NULL && this_cmp->Opcode() == Op_CmpI &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue